Back to Wails

Session Storage API Demo

v3/examples/web-apis/sessionstorage/frontend/index.html

2.13.0806 B
Original Source

Session Storage API Demo

The Web Storage API provides sessionStorage for key-value storage that persists only for the duration of the page session (until the tab or browser is closed).

sessionStorage is available: checking...

Store Data

Key

Value Save to sessionStorageLoad from sessionStorage

Stored Items (0)

Refresh ListClear All

Session vs Local Storage Comparison

Save the same key to both storages to compare behavior:

Comparison Key Save to BothCompare

sessionStorage

localStorage

Tip: Refresh the page or open a new tab to see the difference - sessionStorage is unique per tab!

Storage Info

API Support

Event Log

Clear Log Storage events will appear here... Note: Storage events fire when data is changed from ANOTHER tab/window of the same origin.