See bug 15441 for more information on changes.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@69779 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Chris Newbill 2002-02-08 17:26:51 +00:00
parent f99a6ff0d7
commit b37431f58b

View file

@ -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 @@ header("Content-Disposition: attachment; filename=downloaded.pdf");
<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 @@ setcookie ("TestCookie", $value,time()+3600, "/~rasmus/", ".utoronto.ca", 1);
</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