← Tech-Pages

Cookies & LocalStorage

When you log in, choose dark mode, or add to cart — how does the website remember after you refresh? It uses tiny data stores in your browser: Cookies (tickets for the server), LocalStorage (your personal notebook), and SessionStorage (a sticky note you throw away when you leave).

👆 Select a scenario to see how the browser remembers your data.