Jason Davidson wrote:
You can.. Dont include the expire argument.. or set it to 0.
Jason
On 9/1/05, Philip Hallstrom <php@xxxxxxxxxxxxxxx> wrote:
Simple question I guess..
How do I set a cookie so it will never expire? (I don't want it to
expire)
You can't really... I could delete it and that would be the same as
expiring it...
Best you can do is set it to expire 100 years in the future or some
such... see the manual for SetCookie() for more info...
-philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you do that then the cookie will expire as soon as the browser
session has been closed - I dont think that is what the OP wanted. As
per the previous post, all you can really do is set it for some date far
in the future.
Mikey
--
The revolution will not be sent as an email attachment.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php