philip Mon Jan 20 13:46:37 2003 EDT
Modified files:
/phpdoc/en/reference/http/functions setcookie.xml
Log:
Move the delete information after the view. set -> view -> delete.
Index: phpdoc/en/reference/http/functions/setcookie.xml
diff -u phpdoc/en/reference/http/functions/setcookie.xml:1.13
phpdoc/en/reference/http/functions/setcookie.xml:1.14
--- phpdoc/en/reference/http/functions/setcookie.xml:1.13 Mon Jan 20 13:43:40
2003
+++ phpdoc/en/reference/http/functions/setcookie.xml Mon Jan 20 13:46:35 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.13 $ -->
+<!-- $Revision: 1.14 $ -->
<!-- splitted from ./en/functions/http.xml, last change in rev 1.2 -->
<refentry id="function.setcookie">
<refnamediv>
@@ -107,23 +107,6 @@
</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 sent in previous example:
- <example>
- <title><function>setcookie</function> delete examples</title>
- <programlisting role="php">
-<![CDATA[
-<?php
-// set the expiration date to one hour ago
-setcookie ("TestCookie", "", time() - 3600);
-setcookie ("TestCookie", "", time() - 3600, "/~rasmus/", ".utoronto.ca", 1);
-?>
-]]>
- </programlisting>
- </example>
- </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
is automatically decoded and assigned to a variable by the same
@@ -143,6 +126,23 @@
]]>
</programlisting>
</informalexample>
+ </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 sent in previous example:
+ <example>
+ <title><function>setcookie</function> delete examples</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// set the expiration date to one hour ago
+setcookie ("TestCookie", "", time() - 3600);
+setcookie ("TestCookie", "", time() - 3600, "/~rasmus/", ".example.com", 1);
+?>
+]]>
+ </programlisting>
+ </example>
</para>
<para>
You may also set array cookies by using array notation in the
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php