Does opera rest on January 1?
Faced with the interesting behavior of cookies in the opera on the day of January 1, 1997/2001/2005 ... years.
My actions:
1. I translate the system date to January 1, 1997,
2. set cookies in the script with a lifetime of 100 seconds,
3. I display document.cookie.
Result - cookies are not set .
I repeat the same steps, but set the cookie lifetime to 1 day (86400 second). Result - everything works.
On other dates, everything works as expected, i.e. cookies set.
Verification script. Open in the opera. A cookie with the name test_100sec should be set . Now translate the date and refresh the page (you can clear cookies for the experiment). Your comments?
UpdateFirst gave the wrong link. Corrected.
My actions:
1. I translate the system date to January 1, 1997,
2. set cookies in the script with a lifetime of 100 seconds,
3. I display document.cookie.
Result - cookies are not set .
I repeat the same steps, but set the cookie lifetime to 1 day (86400 second). Result - everything works.
On other dates, everything works as expected, i.e. cookies set.
Verification script. Open in the opera. A cookie with the name test_100sec should be set . Now translate the date and refresh the page (you can clear cookies for the experiment). Your comments?
UpdateFirst gave the wrong link. Corrected.