Code Safari

Chapter 35·Beginner

Cookies: How Credentials Ride Along With Requests

01 / 06

The core idea

A bit of data the browser sends automatically.

A cookie is data the server asks the browser to store and send back on every request to that site — perfect for carrying a session ID.

Cookies: How Credentials Ride Along With Requests | Code Safari