Overview#
LocalStorage is part of W3C Web StorageLocalStorage is a persistent key-value store in the browser with a full JavaScript API to set/get/remove values and events to track changes programmatically.
LocalStorage typically allows for up to 5MB of storage, although this can be increased at the user's discretion.
Data in LocalStorage isn't sent to the server as it is with cookies.
LocalStorage allows for a whole range of uses that cookies do not, and cookies allow for a whole range of uses that localStorage does not.
sessionStorage maintains a separate Web Storage area for each given origin that is available for the duration of the page session (as long as the browser is open, including page reloads and restores).
LocalStorage are simple key-value DataStores, similar to objects, but they stay intact through page loads.
More Information#
There might be more information for this subject on one of the following:- Implicit Grant
- JWT Authentication
- Logging Out
- NIST.SP.800-63B
- OpenID Connect Back-Channel Logout
- OpenID Connect Front-Channel Logout
- Web Hypertext Application Technology Working Group
- Web Storage
- [#1] - Using the Web Storage API
- based on information obtained 2018-12-16-