php - Google Chrome maximum cookie expiry date -
i creating website when created new cookie php line :
setcookie('subscribed', 'true', time() + 365*24*3600*100, '/', null, false, true);
i realised browser (google chrome) refused cookie. when looked @ cookies in google chrome wasn't there. started fiddling different settings until saw worked :
setcookie('subscribed', 'true', time() + 365*24*360, '/', null, false, true);
which meant changing expiration time lower value did work means of making work.
my question is, lowest expiration time can set cookie in google chrome? know of policy?
i have tried on 64bit os chrome browser , apache server, , works flawlessly. shows cookie's expiration time somewhere in year 2113.
dev-null-dweller right: date beyond 03:14:07 utc on tuesday, 19 january 2038 wrap around time close 1900, forcing cookie disappear (on 32bit platforms, is).
work around setting cookie expiration times no more 10 years in future, or so. beyond reasonably expectable lifetime of electronic device, hold it, anyways.
Comments
Post a Comment