note 75343 added to function.setcookie
| From: | jonathan dot bergeron at rve dot ulaval dot ca | Date: | Thu, 24 May 2007 19:05:10 +0000 |
| Subject: | note 75343 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126876@lists.php.net to get a copy of this message | ||
About the delete part, I found that Firefox only remove the cookie when you submit the same values
for all parameters, except the date, which sould be in the past. Submiting blank values didn't
work for me.
Example :
- set -
setcookie( "name", "value", "future_timestamp", "path",
"domain" );
- delete -
setcookie( "name", "value", "past_timestamp", "path",
"domain" );
Jonathan
----
Server IP: 66.207.199.35
Probable Submitter: 132.203.212.119
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit -- https://master.php.net/note/edit/75343
Del: integrated -- https://master.php.net/note/delete/75343/integrated
Del: useless -- https://master.php.net/note/delete/75343/useless
Del: bad code -- https://master.php.net/note/delete/75343/bad+code
Del: spam -- https://master.php.net/note/delete/75343/spam
Del: non-english -- https://master.php.net/note/delete/75343/non-english
Del: in docs -- https://master.php.net/note/delete/75343/in+docs
Del: other reasons-- https://master.php.net/note/delete/75343
Reject -- https://master.php.net/note/reject/75343
Search -- https://master.php.net/manage/user-notes.php