vrana           Wed Sep 21 04:23:02 2005 EDT

  Modified files:              
    /phpdoc/en/features cookies.xml 
  Log:
  Emphasise $_COOKIE (bug #34573)
  
http://cvs.php.net/diff.php/phpdoc/en/features/cookies.xml?r1=1.20&r2=1.21&ty=u
Index: phpdoc/en/features/cookies.xml
diff -u phpdoc/en/features/cookies.xml:1.20 phpdoc/en/features/cookies.xml:1.21
--- phpdoc/en/features/cookies.xml:1.20 Mon May 24 16:03:04 2004
+++ phpdoc/en/features/cookies.xml      Wed Sep 21 04:23:00 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.20 $ -->
+<!-- $Revision: 1.21 $ -->
  <chapter id="features.cookies">
   <title>Cookies</title>
 
@@ -17,17 +17,18 @@
   </para>
 
   <para>
-   Any cookies sent to you from the client will automatically be turned into a
-   PHP variable just like <literal>GET</literal> and <literal>POST</literal> 
-   method data, depending on the  <link 
linkend="ini.register-globals">register_globals</link>
-   and <link linkend="ini.variables-order">variables_order</link>
-   configuration variables.  If you wish to assign multiple values to a single
+   Any cookies sent to you from the client will automatically be included into
+   a <link linkend="reserved.variables.cookies">$_COOKIE</link> auto-global
+   array if <link linkend="ini.variables-order">variables_order</link>
+   contains "C". If you wish to assign multiple values to a single
    cookie, just add <literal>[]</literal> to the cookie name.
   </para>
 
   <para>
-   In PHP 4.1.0 and later, the <varname>$_COOKIE</varname> auto-global array
-   will always be set with any cookies sent from the client.
+   Depending on <link linkend="ini.register-globals">register_globals</link>,
+   regular PHP variables can be created from cookies. However it's not
+   recommended to rely on them as this feature is often turned off for the
+   sake of security.
    <varname>$HTTP_COOKIE_VARS</varname> is also set in earlier versions of PHP
    when the <link linkend="ini.track-vars">track_vars</link> configuration 
    variable is set. (This setting is always on since PHP 4.0.3.)

Reply via email to