Performance and optimization · Remembering the user
Cookies and sessions-style app
Illustrative system design for a remembering the user app like Cookies and sessions: 2 topics to read, from requirements to deep dives.
Illustrative design, not Cookies and sessions’s actual implementation. Arrowbox is not affiliated with Cookies and sessions’s owner. Disclaimer
Start with Cookies Sign in to start readingUpdated 2 Oct 2026
Core
A server sets a cookie once and the browser attaches it to every matching request; Domain, Path, Secure, HttpOnly and SameSite decide which requests those are, and every byte rides along each time.
Cookies, localStorage, sessionStorage, IndexedDB and Cache Storage differ in size, speed, lifetime and who can read them; pick by the data, and plan for quotas and eviction.