close
Current (Local) Storage Contents:
Data can be stored in string form on client side; as key value pairs in Local storage or Session storage.
Use the below fields to add key-value pairs to the local storage.
Use Refresh (F5) to show the data in the (local or session) storage
Key: Value:
sessionStorage = localStorage except sessionStorage is cleared every time the session is ended (by closing the browser).
localStorage is still available when browser is reopened (to the same page).
The user can continue adding to local storage in this application until the storage is full.
Availability of local storage is limited, and the storage available isn’t consistent across browsers.
It may be as little as 5Mb in some cases.
The benefit to using the Web Storage API instead of cookies is that the data resides locally and stays local.