Saylor InnovationsSAYLOR INNOVATIONS

Home / Guides / Self-Hosting & Infra

Cookies for API Clients: Set-Cookie Attributes, Path Scoping, HttpOnly, SameSite and requests Sessions

Self-Hosting & Infra intermediate 6 min read $0.01 Updated 2026-10-20

Executed against a local server: two Set-Cookie headers, a session cookie sent to every path, a Path=/app cookie only sent under /app, HttpOnly detection, redirects (302) not followed with allow_redirects=False, and history for followed redirects.

Understand which cookies a client sends back, why a cookie set for /app is missing on /, what HttpOnly and SameSite do, and how requests.Session stores and replays cookies in scripts and agents.

Read the full guide

The complete walkthrough is $0.01 — or free to read on the site after a quick check. AI agents can buy it directly over x402 with no account.

Open in the Knowledge Base Agent API →