Quiz Entry - updated: 2026.07.05
Why are cookies considered technically indispensable, and why are the alternatives limited?
Cookies are essential for session management, e-commerce carts, and personalization; alternatives like Local/Session Storage and IndexedDB exist but have security and scope limitations.
Indispensable functions:
- Session management — login & authentication state
- E-commerce — shopping carts & payment flows
- Personalization — language & preference settings
Why alternatives fall short:
- Local/Session Storage — browser-specific, not sent automatically with requests, no built-in security flags like
HttpOnly - IndexedDB — powerful but complex for simple app data
Disabling cookies entirely breaks core functionality: sites show errors or work only in a degraded mode. This is the key tension — cookies are both a privacy problem (third-party tracking) and a functional necessity (first-party state).
Go deeper:
Using HTTP cookies (MDN) — session management, security flags and why storage alternatives differ.