Session Storage API
Overview
Session Storage API is a part of Web Storage API which allows web apps to store data locally as key/value pairs within the browser's storage.
The data stored using Session Storage API is non-persistent - ie, the stored data in a particular tab is not accessible to other tabs of the same origin, and it gets cleared from the storage if the tab is closed.
Demo
https://nectar.website/demo/web-apis/session-storage/
Usage
You can refer to the code present in /partials/web-apis/session-storage.html
file and use it accordingly.
Reference
https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage
Last updated