cvs: phpdoc /en/functions http.xml

From: Date: Fri, 08 Feb 2002 17:26:51 +0000
Subject: cvs: phpdoc /en/functions http.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969342105@lists.php.net to get a copy of this message
cnewbill Fri Feb 8 12:26:51 2002 EDT Modified files: /phpdoc/en/functions http.xml Log: See bug 15441 for more information on changes. Index: phpdoc/en/functions/http.xml diff -u phpdoc/en/functions/http.xml:1.35 phpdoc/en/functions/http.xml:1.36 --- phpdoc/en/functions/http.xml:1.35 Sat Feb 2 10:35:59 2002 +++ phpdoc/en/functions/http.xml Fri Feb 8 12:26:51 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.35 $ --> +<!-- $Revision: 1.36 $ --> <reference id="ref.http"> <title>HTTP functions</title> <titleabbrev>HTTP</titleabbrev> @@ -300,7 +300,7 @@ <title><function>setcookie</function> send examples</title> <programlisting role="php"> <![CDATA[ -setcookie ("TestCookie", "Test Value"); +setcookie ("TestCookie", $value); setcookie ("TestCookie", $value,time()+3600); /* expire in 1 hour */ setcookie ("TestCookie", $value,time()+3600, "/~rasmus/", ".utoronto.ca", 1); ]]> @@ -308,20 +308,19 @@ </example> </para> <para> + When deleting a cookie you should assure that the expiration date + is in the past, to trigger the removal mechanism in your browser. Examples follow how to delete cookies send in previous example: <example> <title><function>setcookie</function> delete examples</title> <programlisting role="php"> <![CDATA[ -setcookie ("TestCookie"); // set the expiration date to one hour ago setcookie ("TestCookie", "", time() - 3600); setcookie ("TestCookie", "", time() - 3600, "/~rasmus/", ".utoronto.ca", 1); ]]> </programlisting> </example> - When deleting a cookie you should assure that the expiration date - is in the past, to trigger the removal mechanism in your browser. </para> <para> Note that the value portion of the cookie will automatically be

« previous php.doc (#969342105) next »