How do you set a cookie not to ever expire even after the browser is closed?
I've tried the following:
setcookie(cookie,value);
and when you close the browser it has to set the cookie again, which i don't
want it to do.
Thanks,
jay
--
PHP General Mailing List (http://www.php.net/)
To
To: [EMAIL PROTECTED]
Subject: [PHP] easy cookie question
How do you set a cookie not to ever expire even after the browser
is closed?
I've tried the following:
setcookie(cookie,value);
and when you close the browser it has to set the cookie again,
which i don't
want it to do
So sprach »Jay Paulson« am 2001-09-13 um 15:13:15 -0500 :
How do you set a cookie not to ever expire even after the browser is closed?
You don't. All you can do is to set it for a VERY long time (max: 37
years now, I suppose). The third parameter sets when the cookie is to
expire.
-
3 matches
Mail list logo