About Storage

The Storage API lets you store, retrieve, and manage data on the client side using three types of web storage: local, session, and memory. This is useful for temporarily saving information like form inputs, visitor preferences, or app state — without needing a server or database.

To learn more about local, session, or memory storage, see Introduction.

Get hands-on experience with the Storage API on our Hello Storage example page.

Terminology

  • Local storage: Stores data that persists across browser sessions.
  • Session storage: Stores data that lasts only for the duration of the browser tab or window.
  • Memory storage: Stores data temporarily during a page visit.
Did this help?