A third-party cookie before any choice

What was built

A response sets a cookie as the page loads. The cookie is not limited to the site the visitor opened.

The browser stores a cookie for that other host that outlives the session.

How to tell

A Set-Cookie header from a host other than the page carries Max-Age or Expires beyond the session, and it is written before any interaction.

Why it matters

Distinguishing between functional cookies (like session routing or load balancers) and marketing cookies is legally required. Dropping non-essential tracking or analytics cookies before explicit interaction is an immediate regulatory violation.