I perform following javascript code in Opera javascript console
document.cookie='test=abc'
then I close all tabs one by one and then I close the browser.
After that when I open browser again cookie value test=abc
is still in document.cookie
variable.
I tried to reseach the problem and found this on official opera website http://help.opera.com/Windows/9.50/en/cookies.html:
If no expiration date is assigned to it, a cookie expires at the end of the session, when you exit the browser. A cookie that expires at end of session is called a session cookie.
It means that Opera should follow standart behavior with session cookies, but it doesn't.
Also I found this Firefox session cookies:
Firefox has a feature where you close Firefox and it offers to save all your tabs, and then you restore the browser and those tabs come back. That's called session restore. What I didn't realize is that it'll also restore all the session cookies for those pages too! It treats it like you had never closed the browser.
So, just in case, before closing the browser (Opera in my case) I closed all tabs one by one. But it didn't help too. Session cookie wasn't deleted.
Opera version: 17.0.1241.53; Operation system: Windows 7 32-bit