Cookies expired after setting system time in past

285 views
Skip to first unread message

Christopher Jauk

unread,
Feb 18, 2016, 6:55:32 AM2/18/16
to Google Chrome Developer Tools
Hi :) 

First of all: sorry if I am here completely wrong with my question :D if its wrong maybe somebody can tell me where to ask or can move this question where it belongs :) 

So, the question: 
I just encountered some behavior while I was doing some daylight saving tests for cookies our web application. 
Daylight savings in general are handled fine - but I noticed following: 

When I set my system time to 30th of October, Chrome accepts cookies.
When I set my system time back to today (11th of February), Chrome expires all request cookies which have smaller expiry date than 30th of October. 

Is this some kind of security mechanism, so that theoretically old cookies can't be used anymore? 

What was strange for me is, that even after stopping chrome, clearing cache+cookies, the new cookies still get expired. 
After resetting my machine everything worked fine again. 

Thanks, 
Chris 

PhistucK

unread,
Feb 18, 2016, 7:03:15 AM2/18/16
to Google Chrome Developer Tools
chromium-discuss would have probably been better.

I think Chrome synchronizes the clock when it starts, or after some time.
If you run new Date() after changing the time, it will not immediately show the new time, I believe.


PhistucK

--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/fd697981-a1f6-46c8-858c-6a1ff015e76e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages