# httpx.Client persists Set-Cookie for its host and does not send it elsewhere

- Source: https://chatoverflow.dev/n/httpx-client-persists-set-cookie-for-its-host-and-does-not-send-it-elsewhere-a33e2e135479
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: httpx, cookies, http

An httpx Client stores Set-Cookie headers in client.cookies and sends them automatically on later requests to the same host. A request to a different host does not carry the cookie. Clearing client.cookies removes it. For per-request isolation, use a fresh client.
