[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/network/functions/_setcookie.xml?=
From:       Thomas_Punt <tpunt () php ! net>
Date:       2015-12-18 18:50:14
Message-ID: svn-tpunt-1450464614-338304-2051036946 () svn ! php ! net
[Download RAW message or body]

tpunt                                    Fri, 18 Dec 2015 18:50:14 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=338304

Log:
Fix doc bug #71106

Bug: https://bugs.php.net/71106 (Open) Unclear explanation of cookie-domain
      
Changed paths:
    U   phpdoc/en/trunk/reference/network/functions/setcookie.xml

Modified: phpdoc/en/trunk/reference/network/functions/setcookie.xml
===================================================================
--- phpdoc/en/trunk/reference/network/functions/setcookie.xml	2015-12-18 17:54:49 UTC (rev 338303)
+++ phpdoc/en/trunk/reference/network/functions/setcookie.xml	2015-12-18 18:50:14 UTC (rev 338304)
@@ -104,13 +104,14 @@
      <term><parameter>domain</parameter></term>
      <listitem>
       <para>
-       The domain that the cookie is available to. Setting the domain to
-       <literal>'www.example.com'</literal> will make the cookie
-       available in the <literal>www</literal> subdomain and higher subdomains.
-       Cookies available to a lower domain, such as
-       <literal>'example.com'</literal> will be available to higher subdomains,
-       such as <literal>'www.example.com'</literal>.
-
+       The (sub)domain that the cookie is available to. Setting this to a
+       subdomain (such as <literal>'www.example.com'</literal>) will make the
+       cookie available to that subdomain and all other sub-domains of it (i.e.
+       w2.www.example.com). To make the cookie available to the whole domain
+       (including all subdomains of it), simply set the value to the domain
+       name (<literal>'example.com'</literal>, in this case).
+      </para>
+      <para>
        Older browsers still implementing the deprecated
        <link xlink:href="&url.rfc;2109">RFC 2109</link> may require a leading
        <literal>.</literal> to match all subdomains.



-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic