Can sessionStorage shares data between multiple tabs?
Published in
Nov 29, 2023
List of Browser Storage Mechanism
- localStorage — 5MB, saved for infinity or until users manually deletes it.
- sessionStorage — 5MB, saved for the life of current tab.
- cookie- 4KB, saved up to infinity
- sessionCookie —
What is sessionStorage?
- This storage cannot share data between multiple tabs.
- But, data can be shared between iframes in the same tab.
- The data survives page refresh, but not closing/opening tab.
Preparing for Frontend Interview — GreatFrontend System Design Course
Level Up JavaScript Concept — Read You Don’t Know JS