The following code works fine in FF:
var date = new Date();
date.setTime(date.getTime() + (1 * 24 * 60 * 60 * 1000));
expires = \"; expires=\" + date.toGMTSt
This problem can occur if You open Your code as file:///C:/.../xxx.html
instead of http:// localhost/xxx.html
. Chrome doesn't save cookies (because there is no domain and no http communication) in file://
case.
Few links of interest: