HTTP consent cookies
Set up the subdomain, the two DNS records and the certificate, with fixes for each step.
A second copy of each choice.
With HTTP consent cookies, your own consent subdomain also stores each choice, in a cookie its server sets. When the banner's own cookie is gone, the choice comes back from there.
HTTP consent cookies are available on the Agency and Unlimited plans. Browser rules checked on .
How it works
The banner keeps its own cookie, and your consent subdomain keeps a copy the browser receives from a server, not from a script.
The banner saves the choice in _cc_consent and sends the same choice to your consent subdomain.
Its response sets kk_consent on your domain for 365 days, Secure and SameSite Lax. The banner can read it.
If _cc_consent is gone, the banner restores the choice from kk_consent. It still ends when your consent duration runs out.
Side by side
Both hold the same choice. What differs is who sets each one, and so which browser rules apply to it.
| Detail | _cc_consent | kk_consent |
|---|---|---|
| Set by | The banner's script | Your consent subdomain, in its response |
| Asks to be kept for | Your consent duration, 365 days unless you change it | 365 days |
| Domain | Your site, or your domain with subdomain sharing on | The closest domain your site and the subdomain share |
| Read by the banner | Yes | Yes, when _cc_consent is gone |
| Secure and SameSite | Secure on HTTPS pages, SameSite Lax | Always Secure, SameSite Lax |
| Holds | The choice, a consent ID and the time | The same, plus your site key |
Browser limits
A cookie lives as long as the browser allows, not only as long as the site asks. These are Safari's rules that apply here, checked on .
Safari keeps a cookie that a page's script writes, such as _cc_consent, for up to 7 days.1
A cookie set by a subdomain that points to another company's domain through a CNAME record is kept for up to 7 days too.2 Your consent subdomain points to cookies.kukie.io.
The same limit applies when the server's IP address differs from your site's in its first half.3
What this means for Safari. kk_consent can expire after 7 days, like the script cookie. Whether it does depends on how your DNS answers for the consent subdomain, so check it in Safari once it is set up. Where the script cookie lasts its full time, the banner reads that one and kk_consent stays a backup.
Built in
Kukie.io checks that the subdomain is yours before it sets a single cookie on it, and keeps each site's choices apart.
Verification needs the CNAME and a TXT record whose value is unique to your site, so no one else can claim your subdomain.
The subdomain answers only on its verified address, and only to pages on your site.
Once both records check out, Kukie.io requests the TLS certificate. Until it is active, the banner keeps its script cookie alone.
Sites under one domain never restore each other's choice, because each cookie carries its own site's key.
Each site has its own consent subdomain. A subdomain another site has verified cannot be used again.
Reject all is written the same way as an acceptance, and a choice the banner refuses to restore is cleared from both cookies.
Check it yourself
Two checks once the certificate is active: the response in any browser, and the expiry in Safari.
Select Accept all, open Network and find the request to your consent subdomain. Its Cookies tab lists kk_consent:
The request goes to your own subdomain, at /api/v1/consent/http.
In Safari, open Web Inspector, then Storage, then Cookies. Compare the Expires date of kk_consent with today:
Use a private window, so an earlier choice does not answer for you.
Setup
A subdomain of your site's domain and access to your DNS are all you need.
The two DNS records, for consent.example.com
| Type | Name | Value |
|---|---|---|
| CNAME | consent | cookies.kukie.io |
| TXT | _kukie-challenge.consent | The value the card shows, unique to your site |
Documentation
Step-by-step guides in the Help Centre.
Set up the subdomain, the two DNS records and the certificate, with fixes for each step.
Every choice is also recorded with a consent ID you can look up.
Set the consent model and the consent duration for each region.
Set up your consent subdomain in a few minutes, then check in Safari what your setup gets.
Kukie.io provides tools to collect and record consent. It is not legal advice, and using it does not by itself make a website compliant with any law.