Re: [Discussion] Cookies Having Independent Partitioned State (CHIPS)
| From: | Ben Ramsey | Date: | Sat, 05 Jul 2025 22:26:18 +0000 |
| Subject: | Re: [Discussion] Cookies Having Independent Partitioned State (CHIPS) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-127910@lists.php.net to get a copy of this message | ||
> On Jul 5, 2025, at 06:52, Dmitry Derepko <xepozzd@gmail.com> wrote:
>
> 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
The Partitioned parameter isn’t supported in Firefox or Safari. From what I can tell, it’s only
supported in Chromium-based browsers. Safari 18.4 supported it, but they removed the support in
18.5. I’d like to understand why, but I haven’t been able to find anything on it.
Cheers,
Ben
Attachment: [application/pgp-signature] Message signed with OpenPGP signature.asc
Attachment: [application/pgp-signature] Message signed with OpenPGP signature.asc