Labels

Thursday, August 31, 2017

Local storage in the browser

The read-only local-storage property allows you to access a Storage object for the Document's origin;

The stored data is saved across browser sessions.

local-storage is similar to session-storage, except that while data stored in local-storage has no expiration time, data stored in session-storage gets cleared when the page session ends — that is, when the page is closed.