Cookies & Sessions on the Wire
Read this concept as one more decision made about a packet in flight. The widget below lets you change the inputs and watch the consequence instead of memorising the rule.
Why it matters
HTTP is stateless at the protocol level, so identity between requests is carried by header bytes. Treating that as a wire problem reveals why header size and scope matter to both performance and privacy.
On the wire
A server sends Set-Cookie with a name, value, and attributes such as Domain, Path, Secure, HttpOnly, and Max-Age; the client echoes matching cookies in a Cookie header on later requests. Both travel as ordinary header bytes inside the response or request message.
When it breaks
A cookie without Secure can be sent over a plaintext connection and observed by anyone on the path. Excessive cookie size inflates every request, and a wrong Domain attribute can send a session token to a sibling host that should never see it.
Header inspector
Click a field to read what it controls, then change the values that a router or receiver would see.