Internet Explorer 7 doesn't seem to like the max-age=
It doesn't like this (i.e. no persistent cookie is created):
document.cookie = cookieName + "=" + cookieValue +
"; max-age=" + (60*60*24*365) ;
// 1 year in seconds
But does like this:
var nextyear = new Date();
nextyear.setFullYear(nextyear.getFullYear() + 1);
document.cookie = cookieName + "=" + cookieValue +
"; expires=" + nextyear.toGMTString();
0 Comments