Reputation: 1016
sessionStorage
is supposed to be cleared after the browser is restarted, according to MDN:
data stored in sessionStorage gets cleared when the page session ends
I restart and restart Firefox 59 and Chrome 65 — and nothing, sessionStorage
's data is still there. Why would that be?
Upvotes: 5
Views: 3312
Reputation: 1147
For those who are wondering and here. If user has selected to continue where he left option of similar feature in any browser. sessionStorage
will be saved by the browser in between the restarts of the browser.
We had to get our requirements changed as because of this. Hope it will be helpful for some
Upvotes: 11