简体   繁体   中英

sessionStorage doesn't clear after browser restart

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM