[thelist] Tip: setting cookies in JavaScript
Craig Saila
crsaila at yahoo.ca
Fri Nov 23 18:13:53 CST 2001
Not owing, but might one day:
<tip type="Setting cookies in JavaScript" author="Craig Saila">
If you use something like this to set a cookie:
var time = new Date();
time.setTime(time.getTime());
document.cookie = name + "=" + escape(value) + "; path=/; expires=" +
time;
make sure you convert "time" to GMT by doing this:
time.toGMTString()
Mozilla 0.9.6 requires it.
</tip>
--
Cheers,
Craig Saila
------------------------------------------
craig at saila.com : http://www.saila.com/
------------------------------------------
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
More information about the thelist
mailing list