Hi, all, It seems no more people use the cookie plug in, I'm find new a bug again. When I set the expires parameter to 7, cookie always expires when browser closing. I'm traced the problem, First: --------------------------------------------------------------------------- Line 62: maxAge = options.expires * 24 * 60 * 60; // seconds This line should write as: maxAge = options.expires * 1000 * 24 * 60 * 60; //days --------------------------------------------------------------------------- Second: --------------------------------------------------------------------------- Line 73: expires = '; max-age=' + maxAge; This line sould write as: var mydate = new Date(); mydate.setTime(mydate.getTime() + maxAge); expires = '; expires=' + mydate.toGMTString(); --------------------------------------------------------------------------- I don't know if it corrent for me...
Best wishes, Toby 2006-11-5 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/