Hi Everyone,

I can use cookies with PHP but I can't make the cookie last forever.
I can set the cookie to expire for upto 1 hour.
This is the code :
setcookie("bookmarks","cookievalue",time()+3600);
That would make the cookie expire after an hour.

How do I make the cookie not expire at all?
If I don't mention any expiration time, the cookie expires as soon
as quit the browser. Can I use date instead of time? If yes, then in
which format should I specify the date?

Thanks,
--
Joel Agnel
[EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to