Cookies and Browser State
A browser, a shop and the small files carried with each visit.
↺
How does a site remember a visit?
Web serverReply to browser
Login cookie tern.test
Basket cookie tern.testbasket=pencils:2
Language cookie tern.testlang=fr
Address cookie tern.testaddress=12 Willow Lane
Interest cookie tern.testinterest=drawing
Tern · tern.test
Pages on this server
ShopCheckout
| User ID | Name |
|---|---|
| u17 | Lea |
| u29 | Nico |
An expiry is the start of that date. Today: 2026-11-09.
Browser A · store below
Lea's computer
Lea is using it
Lea is using it
9 Nov 2026
Web browser is openStartup page: tern.test
tern.test/shopWeb browser
TernStationery shop
Guest
Language English
Basket0 items
Delivery address Not saved
Language
Sketchbook
Cookie store, request and full result below
Browser closed
Tab closed
The browser is still open.
Calendar9 Nov 2026Later visit: 18 Nov 2026 or later
Browser's cookie storeInside this computer
RAMMemory
No reply received
DriveSecondary storage
No reply received
Person using this browser
Lea's visitBrowser closesNico's visitNo time passes between them
Both visitsNo requests yet
Earlier visit
Request not sent
No reply yet
Latest visit
Request not sent
No reply yet
Invented, simplified sites and cookies. Here closing the browser ends its session. Real sites often keep baskets on the server and put only an ID in the cookie.