en.javascript.info icon indicating copy to clipboard operation
en.javascript.info copied to clipboard

localStorage/sessionStorage

Open anotherCoward opened this issue 6 years ago • 2 comments

It says, sessionStorage is destroyed after closing a tab, but that's not fully correct. At least for Chrome.

Restoring the tab, with CTRL + SHIFT + T (to restore tabs, closed recently) restores also the sessionStorage for this tab. This works at least in Chrome 79 and maybe some other chromium based browsers, but not Firefox. Only a restart clears this on Chrome for sure.

I'm not sure if this is a issue or just a bit more comfort a chromium browser offers, but it may deserve a note in the article.

anotherCoward avatar Dec 21 '19 10:12 anotherCoward

When you restore a closed tab, its session is recovered also. No contradiction.

iliakan avatar Dec 27 '19 07:12 iliakan

There's the same with other JS stuff.

iliakan avatar Dec 27 '19 07:12 iliakan