📜 ⬆️ ⬇️

Opera rests January 1?

Faced with the interesting behavior of cookies in the opera on January 1, 1997/2001/2005 ...
My actions:
1. translate the system date to January 1, 1997,
2. install cookies in the script with a lifetime of 100 seconds,
3. I deduce document.cookie.
The result is a cookie is not set .

I repeat the same steps, but set the cookie lifetime to 1 day (86400 second). The result - everything works.

On other dates, everything works as expected, i.e. the cookie is set.
')
Check script. Open in the opera. A cookie should be set with the name test_100sec . Now translate the date and refresh the page (you can clean the cookies for the purity of the experiment). Your comments?

Updated First gave the wrong link. Corrected.

Source: https://habr.com/ru/post/55776/


All Articles