jargon

Frontend & browser·Storage and platform APIs

the value survived a refresh and vanished when the tab was closed, and the other tab never saw it.

sessionStorage

Also calledsession storage

The same API as `localStorage` with a different lifetime: scoped to one tab and cleared when it closes. That per-tab isolation is the point — it is right for a multi-step flow that should not leak between tabs, and wrong for anything the user expects to persist. A duplicated tab copies the contents once and then the two diverge, which surprises people.

Commonly confused with