set cookie function problem
| From: | Ospinto | Date: | Tue, 19 Apr 2005 21:20:27 +0000 |
| Subject: | set cookie function problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-213396@lists.php.net to get a copy of this message | ||
Hi,
Can someone help me with this problem?
setcookie('myCookie',"blah");
works fine. but when i try to set it with an expiry time, it doesn't.
setcookie('myCookie',"blah",time()+3600);
I have cookies enabled on my browser of course. And the way I know the
second statement is not working is cos I'm doing a var_dump of $_COOKIES.
Thanks for your help.