- it is a storage that is used to store the data persistently for active tabs only even page refreshes.
- Opening multiple tabs/windows with the same URL creates session Storage for each tab/window.
- duplicating a tab copies the tab's session Storage into the new tab. only when do you duplicate, your current session storage is copied as an initial stage to that particular tab instance and after that whatever you performing as an independent activity it doesn't share any information(no data is shared across the tab)
- Session storage API provides some methods: setItem, getItem, removeItem, and clear.
Size limit: 5 mb per domain.
Performance: it is synchronous.
Data persistence: cleared when the browser session ends(tab or window closes).
Data structure: key: value pair.
Security: Session expires.
When to use(use case): temporary sensitive data.
When not to use: Large dataset and async operation, avoid long duration.