mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
f99a6ff0d7
commit
b37431f58b
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue