Skip to content

Instantly share code, notes, and snippets.

View jsiny's full-sized avatar

Juliette Sinibardy jsiny

View GitHub Profile
@jsiny
jsiny / notes.md
Last active April 18, 2020 15:51

1. Cookies and Their Use

The server can set cookies with the Set-Cookie header (Set-Cookie: theme=dark;) and the browser automatically sends this cookie back at every request (Cookie: theme=dark;)

The server does that to implement the idea of a session. The goal is to keep a set of data related to a user's current 'browsing session'.

Examples: logins, shopping carts and user tracking.

Ambient Authority