|
|
Q889 What happens to cookie expiry dates after 31st December 1999?
irt.org | Knowledge Base | JavaScript | Cookie | Q889 [ previous next ] Q889 What happens to cookie expiry dates after 31st December 1999?Take a look at http://www.netscape.com/newsref/std/cookie_spec.html which specifies that the expiry date should use 4 digit dates. If you are using two digit dates then you'll hit a y2k problem. To ensure that you are using a full four digit date use the robust y2k() JavaScript function when extracting the year from a date object:
|
-- div -->
|