note 19024 added to function.setcookie
| From: | dodo at rnsys dot org | Date: | Wed, 13 Feb 2002 16:54:48 +0000 |
| Subject: | note 19024 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26561@lists.php.net to get a copy of this message | ||
After reading all the above notes and reading every tutorial on the web I still couldn't get
the the setcookie working, so I stole it from a news publisher:
setcookie ("mycookie",$value,time()+604800);
(IE 5.5 didn't work!)
setcookie ("mycookie",$value,"time()+604800");
(IE 5.5 didn't work!)
$exp["cookielife"] = 604800;
setcookie ("mycookie",$value,time() + $exp["cookielife"]);
(IE 5.5 did work!)
maybe this might show you the path outta cookie hell
--
http://www.php.net/manual/en/function.setcookie.php
http://master.php.net/manage/user-notes.php?action=edit+19024
http://master.php.net/manage/user-notes.php?action=delete+19024
http://master.php.net/manage/user-notes.php?action=reject+19024