Guides · Privacy and third parties

Cookies on arrival

One of the checks in every audibot report. This page says exactly what audibot reads, what passes, and how to fix it.

What audibot checks

The Set-Cookie headers on the home page response, before any interaction. Cookies set later by JavaScript are not seen.

Why it matters

A cookie set on arrival is set before the visitor could have agreed to it. Session and load-balancer cookies are often unnecessary on a public page too, and they stop shared caches from serving it.

Why does my website set cookies before consent, and how do I stop it?

Start a session only when it is needed — at sign-in or add-to-basket — rather than on every page view. Anything that is not strictly necessary should wait for consent.

See what the home page sets

curl -sSI https://example.com/ | grep -i set-cookie

PHP: do not start a session on every request

; php.ini
session.auto_start = 0

Related tools

Other checks in Privacy and third parties

Privacy and third parties in the methodology ·All guides

This check is one step of the website launch checklist.

Check your site

audibot runs this check and every other one in a single audit, and publishes the report with a recommendation for each finding.