svn: /phpdoc/en/trunk/reference/network/functions/ setcookie.xml
| From: | Christoph Michael Becker | Date: | Mon, 24 Aug 2015 21:34:35 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/network/functions/ setcookie.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13651@lists.php.net to get a copy of this message | ||
cmb Mon, 24 Aug 2015 21:34:35 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=337615
Log:
no need for $HTTP_COOKIE_VARS anymore;
$_REQUEST does not necessarily contain cookies
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-08-24 21:28:18 UTC (rev 337614)
+++ phpdoc/en/trunk/reference/network/functions/setcookie.xml 2015-08-24 21:34:35 UTC (rev 337615)
@@ -28,12 +28,9 @@
</para>
<para>
Once the cookies have been set, they can be accessed on the next page load
- with the <varname>$_COOKIE</varname> or
- <varname>$HTTP_COOKIE_VARS</varname> arrays. Note,
- <link linkend="language.variables.superglobals">superglobals</link>
- such as <varname>$_COOKIE</varname> became available in PHP 4.1.0.
+ with the <varname>$_COOKIE</varname> array.
Cookie
- values also exist in <varname>$_REQUEST</varname>.
+ values may also exist in <varname>$_REQUEST</varname>.
</para>
</refsect1>
@@ -196,7 +193,6 @@
<?php
// Print an individual cookie
echo $_COOKIE["TestCookie"];
-echo $HTTP_COOKIE_VARS["TestCookie"];
// Another way to debug/test is to view all cookies
print_r($_COOKIE);