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.
-> php.net
You need to set the expire time. Set it to 10 years in the future or
something.
$expire_time = time() + (86400 * 365 * 10);
setcookie("cookie", "value", $expire_time);
Cheers,
Kelly.
> -Original Message-
> From: Jay Paulson [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 14 September 2001 6
2 matches
Mail list logo