[Discussion] Cookies Having Independent Partitioned State (CHIPS)

From: Date: Sat, 05 Jul 2025 11:52:33 +0000
Subject: [Discussion] Cookies Having Independent Partitioned State (CHIPS)
Groups: php.internals 
Request: Send a blank email to internals+get-127902@lists.php.net to get a copy of this message
Hi, Internals!

A few days ago I faced some Cookie limitations, solutions led me to the
CHIPS specification.

Link:
https://developer.mozilla.org/en-US/docs/Web/Privacy/Guides/Privacy_sandbox/Partitioned_cookies

The idea of the CHIPS implementation is to add a new Cookie part named
"Partitioned".

When I set this flag using setcookie function, there was error:
https://3v4l.org/WDpDX

The error raises here:
https://github.com/php/php-src/blob/5853cdb73db85c75d5f558a8cf92161a31291de0/ext/standard/head.c#L205-L220

The workaround is to use the "header" function, which allows any strings
inside.

I want to allow the "Partitioned" key to be set. Shall I open RFC or is it
possible to create only PR with improvements?
Also, I think it may be backported to all the actual PHP versions.

-- 
Best regards,
Dmitrii Derepko.
@xepozz


Thread (5 messages)

« previous php.internals (#127902) next »