aidan Sat Sep 25 22:33:31 2004 EDT
Modified files:
/phpdoc/en/reference/http/functions setcookie.xml
Log:
Added note about boolean values, bug #30221
http://cvs.php.net/diff.php/phpdoc/en/reference/http/functions/setcookie.xml?r1=1.31&r2=1.32&ty=u
Index: phpdoc/en/reference/http/functions/setcookie.xml
diff -u phpdoc/en/reference/http/functions/setcookie.xml:1.31
phpdoc/en/reference/http/functions/setcookie.xml:1.32
--- phpdoc/en/reference/http/functions/setcookie.xml:1.31 Thu Aug 12 14:11:57
2004
+++ phpdoc/en/reference/http/functions/setcookie.xml Sat Sep 25 22:33:31 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.31 $ -->
+<!-- $Revision: 1.32 $ -->
<!-- splitted from ./en/functions/http.xml, last change in rev 1.2 -->
<refentry id="function.setcookie">
<refnamediv>
@@ -135,8 +135,8 @@
<entry><parameter>secure</parameter></entry>
<entry>
Indicates that the cookie should only be transmitted over a
- secure HTTPS connection. When set to &true;, the
- cookie will only be set if a secure connection exists. The default
+ secure HTTPS connection. When set to &true;, the
+ cookie will only be set if a secure connection exists. The default
is &false;.
</entry>
<entry>
@@ -182,9 +182,16 @@
<listitem>
<simpara>
Cookies must be deleted with the same parameters as they were set with.
- If the value argument is an empty string (""), and all other arguments
+ If the value argument is an empty string, or &false;, and all other arguments
match a previous call to setcookie, then the cookie with the specified
name will be deleted from the remote client.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ Because setting a cookie with a value of &false; will try to delete the
cookie,
+ you should not use boolean values. Instead, use <emphasis>0</emphasis> for
&false;
+ and <emphasis>1</emphasis> for &true;.
</simpara>
</listitem>
<listitem>