How to make a cookie never expire in PHP?

From: Date: Sat, 28 Jul 2001 14:52:33 +0000
Subject: How to make a cookie never expire in PHP?
Groups: php.general 
Request: Send a blank email to php-general+get-60037@lists.php.net to get a copy of this message
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 joelagnel@spamex.com

« previous php.general (#60037) next »