Skip to main content

Cookies & State

Every Session ships with a built-in cookie jar that stores Set-Cookie values from responses and replays the matching ones on follow-up requests. This section walks through how the jar decides what to store and what to send, how to switch it off when you'd rather drive cookies yourself, how to attach a Cookie header to a single request, and the domain and path rules that decide whether a stored cookie rides along on the next call.

In this section