Date: 09/14/00
- Next message: Jesus Castagnetto: "Re: [PHP-DOC] Proposed new displacement of section"
- Previous message: Luca Perugini: "[PHP-DOC] Proposed new displacement of section"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
jmcastagnetto Thu Sep 14 17:27:05 2000 EDT
Modified files:
/phpdoc/en/functions http.xml
Log:
Changed cookie delete example to assure that the time referred is in the past
Index: phpdoc/en/functions/http.xml
diff -u phpdoc/en/functions/http.xml:1.9 phpdoc/en/functions/http.xml:1.10
--- phpdoc/en/functions/http.xml:1.9 Tue Aug 15 17:01:46 2000
+++ phpdoc/en/functions/http.xml Thu Sep 14 17:27:05 2000
@@ -200,11 +200,14 @@
<title><function>setcookie</function> delete examples</title>
<programlisting role="php">
setcookie ("TestCookie");
-setcookie ("TestCookie", "", time());
-setcookie ("TestCookie", "", time(), "/~rasmus/", ".utoronto.ca", 1);
+// set the expiration date to one minute ago
+setcookie ("TestCookie", "", time() - 3600);
+setcookie ("TestCookie", "", time() - 3600, "/~rasmus/", ".utoronto.ca", 1);
</programlisting>
</example>
- </para>
+ 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
urlencoded when you send the cookie, and when it is received, it
- Next message: Jesus Castagnetto: "Re: [PHP-DOC] Proposed new displacement of section"
- Previous message: Luca Perugini: "[PHP-DOC] Proposed new displacement of section"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

