Open new window with a clean localstorage

时间:2016-04-15 14:55:31

标签: javascript local-storage

So we are using localstorage in out webapp so that you are "logged in" when you return to the app. The issue is sometimes in our admin area we open up peoples 'cart' pages which logs us in, normally before we close the page we logout and then close so that when we open the app for ourselves later we're not logged in as the user we opened up before.

Is there a way to open a window with a clear localstorage and have it not save the localstorage so that when the window is closed it doesn't save the localstorage over to the other windows? My first thought was to see if I can open a private window but that doesn't seem to be possible.

0 个答案:

没有答案