简体   繁体   中英

Angular delete localStorage value on close

So i am saving my Session user into a $localStorage however since my system is used in the marketing business my users wont be using their own private computer each time they need to access the application.

Because of this if a user choose not to log out before exiting the application i will have to remove the session value from the $localStorage

My question is how?

localStorage可以永久保存会话,但是在浏览器关闭时SessionStorage会关闭会话, 请检查它

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