File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -531,6 +531,21 @@ a new object with the modified property::
531
531
->withDomain('.example.com')
532
532
->withSecure(true);
533
533
534
+ It is possible to define partitioned cookies, also known as `CHIPS `_, by using the
535
+ :method: `Symfony\\ Component\\ HttpFoundation\\ Cookie::withPartitioned ` method::
536
+
537
+ $cookie = Cookie::create('foo')
538
+ ->withValue('bar')
539
+ ->withPartitioned();
540
+
541
+ // you can also set the partitioned argument to true when using the `create()` factory method
542
+ $cookie = Cookie::create('name', 'value', partitioned: true);
543
+
544
+ .. versionadded :: 6.4
545
+
546
+ The :method: `Symfony\\ Component\\ HttpFoundation\\ Cookie::withPartitioned `
547
+ method was introduced in Symfony 6.4.
548
+
534
549
Managing the HTTP Cache
535
550
~~~~~~~~~~~~~~~~~~~~~~~
536
551
@@ -982,3 +997,4 @@ Learn More
982
997
.. _OWASP guidelines : https://cheatsheetseries.owasp.org/cheatsheets/AJAX_Security_Cheat_Sheet.html#always-return-json-with-an-object-on-the-outside
983
998
.. _RFC 8674 : https://tools.ietf.org/html/rfc8674
984
999
.. _Doctrine Batch processing : https://www.doctrine-project.org/projects/doctrine-orm/en/2.14/reference/batch-processing.html#iterating-results
1000
+ .. _`CHIPS` : https://developer.mozilla.org/en-US/docs/Web/Privacy/Partitioned_cookies
You can’t perform that action at this time.
0 commit comments