is there any method (using JavaScript) how to store session until browser is closed? I wanted to use session cookie - when expires is not set the cookie is supposed to expire when browser is closed. But for any practical purpose this is not usable because Firefox with Show my windows and tabs from last time option does not clear session cookies even after browser is closed.
I also cannot use onunload or onbeforeunload because I need to remember the data until the browser is closed even when users reloads or goes to some other page and then comes back.