Web features explorer

localStorage and sessionStorage

Widely available
Tags: api Groups: Storage

The localStorage and sessionStorage APIs store data as key-value pairs. While localStorage persists across sessions, sessionStorage data is discarded when the page is closed. To learn more, see Web Storage API at MDN.

Compatibility (view on caniuse.com)

Specifications