[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: Christoph_Michael_Becker <cmb () php ! net>
Date: 2015-08-24 21:34:35
Message-ID: svn-cmb-1440452075-337615-2028545511 () svn ! php ! net
[Download RAW message or body]
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);
--
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