sessionStorage: Tab-Specific Browser Memory

sessionStorage is temporary browser memory isolated to a single tab. Use it to save state within a single user workflow, like form data. The footgun: unlike localStorage, this data is *not* shared between tabs, even for the same site.
sessionStorage provides temporary, tab-specific key-value storage in the browser. It's ideal for preserving state during page reloads or across pages within the same tab, like partially filled forms. The data survives reloads but not tab closures. The main footgun is confusing it with localStorage; data in sessionStorage is isolated to its tab, so opening the same site in a new tab creates a separate, empty storage space.
Read the original → developer.mozilla.org
- #web apis
- #browser storage
- #javascript
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.