angularjs - Refresh with localStorage and Multiple Logins -
i developing angular app in need give refresh ability user. using localstorage can login details of user. if login user in new tab override login details of previous user.
so question can keep localstorage tab wise?
use sessionstorage:
sessionstorage similar window.localstorage, difference while data stored in localstorage has no expiration set, data stored in sessionstorage gets cleared when page session ends. page session lasts long browser open , survives on page reloads , restores. opening page in new tab or window cause new session initiated, differs how session cookies work.
Comments
Post a Comment