Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

cvs: phpdoc /en/reference/http/functions setcookie.xml
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/...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/refe
rence/http/functions/setcookie.xml:1.32
--- phpdoc/en/reference/http/functions/setcookie.xml:1.31	Thu Aug 12 14:11:5
7 2004
+++ phpdoc/en/reference/http/functions/setcookie.xml	Sat Sep 25 22:33:31 200
4
@@ -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 defau
lt
+          secure HTTPS connection. When set to &true;, the
+          cookie will only be set if a secure connection exists. The defaul
t
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 argume
nts
+        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</emphas
is> for &false;
+        and <emphasis>1</emphasis> for &true;.
</simpara>
</listitem>
<listitem>

Report this thread to moderator Post Follow-up to this message
Old Post
Aidan Lister
09-26-04 08:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Documentation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:25 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.