Cookies and Sessions

← Back to HTTP

Mechanisms for maintaining state in the stateless HTTP protocol. Cookies are small data pieces stored by the browser and sent with every request. Sessions use a server-side store with a session ID cookie. Security flags: SameSite (CSRF protection), Secure (HTTPS only), HttpOnly (no JavaScript access).

Key Properties


networking http security