[Javascript] Cookie that never expires

liorean liorean at f2o.org
Tue Nov 25 03:06:30 CST 2003


Clancy Jones wrote:
> Howdy neighbors, can someone tell me how to set a cookie so that it 
> never expires?

Can't be done. You can set to expire thirty years in the future, but you 
cannot make it not expire. And browsers may very well change the expiry 
date to something that sounds a bit more realistic, such as capping it 
at 90 days in the future or the like.

-- 
liorean <mailto:liorean at user.bip.net>

ViewStyles, ViewScripts, ToggleStyles and GraphicsInfo bookmarklets and 
Theme Switcher, Cookies Handler scripts:
<http://liorean.web-graphics.com/>




More information about the Javascript mailing list