FrontendSecurityTable-stakes

Browser Storage

Also written as localStorage, sessionStorage, IndexedDB, Web Storage

The ways a web page can save data in the user's browser: localStorage and sessionStorage for small bits of text, IndexedDB for larger structured data and offline apps.

Think of it like

A small locker the website gets inside your browser, which it can open again on your next visit.

Junior or senior?

Basic knowledge.

Senior sounds like

Knows not to keep login tokens in localStorage because any injected script can read them.

Ask them

“What would you not store in localStorage, and why?”