Reputation: 56874
I had a similar question to this one but the answers seem a bit cryptic and I'm still not quite "getting" localStorage
.
Upvotes: 7
Views: 6421
Reputation: 3979
No, the data are persisted and aren't expired until you remove or clear them.
If you want the data removed when the users close the browser use sessionStorage instead.
No data persisted in private mode (incognito mode)
It shares data across the instances of a specific browser, for instance, Firefox tabs/instances share the same data but Chrome doesn't share the data with Firefox.
It also depends on the browser mechanism:
Upvotes: 6
Reputation: 1286
Local Storage is persistant in different tabs/windows when application is opened from same domain. 5MB storage per Domain is provided. LocalStrorage can be wiped only when u remove it manualy by LocalStorage.clear(); For more on info on html5 local storage please visit :LOCALSTORAGE in html5
Upvotes: 4