svn: /phpdoc/en/trunk/reference/network/functions/ setcookie.xml

From: Date: Fri, 18 Dec 2015 18:50:14 +0000
Subject: svn: /phpdoc/en/trunk/reference/network/functions/ setcookie.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13914@lists.php.net to get a copy of this message
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.

« previous php.doc.cvs (#13914) next »