note 30095 added to function.setcookie
| From: | metalblend at rack1 dot php dot net | Date: | Thu, 06 Mar 2003 08:03:10 +0000 |
| Subject: | note 30095 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44921@lists.php.net to get a copy of this message | ||
I had trouble figuring out why I couldnt set a cookie and use header("Location:
$PHP_SELF") in IE6 .. caching seemed to be killing cookies, until I tried
header("Cache-Control: private")
setcookie("cookie","value",time()+3600);
header("Cache-Control: private");
header("Location: ".$PHP_SELF);
Hope that helps someone, and if someone would like to explain why this happens that'd be nice.
--
http://www.php.net/manual/en/function.setcookie.php
http://master.php.net/manage/user-notes.php?action=edit+30095
http://master.php.net/manage/user-notes.php?action=delete+30095
http://master.php.net/manage/user-notes.php?action=reject+30095