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 @@ -508,6 +508,21 @@ a new object with the modified property::
508
508
->withDomain('.example.com')
509
509
->withSecure(true);
510
510
511
+ It is possible to define partitioned cookies, also known as `CHIPS `_, by using the
512
+ :method: `Symfony\\ Component\\ HttpFoundation\\ Cookie::withPartitioned ` method::
513
+
514
+ $cookie = Cookie::create('foo')
515
+ ->withValue('bar')
516
+ ->withPartitioned();
517
+
518
+ // you can also set the partitioned argument to true when using the `create()` factory method
519
+ $cookie = Cookie::create('name', 'value', partitioned: true);
520
+
521
+ .. versionadded :: 6.4
522
+
523
+ The :method: `Symfony\\ Component\\ HttpFoundation\\ Cookie::withPartitioned `
524
+ method was introduced in Symfony 6.4.
525
+
511
526
Managing the HTTP Cache
512
527
~~~~~~~~~~~~~~~~~~~~~~~
513
528
@@ -945,3 +960,4 @@ Learn More
945
960
.. _OWASP guidelines : https://cheatsheetseries.owasp.org/cheatsheets/AJAX_Security_Cheat_Sheet.html#always-return-json-with-an-object-on-the-outside
946
961
.. _RFC 8674 : https://tools.ietf.org/html/rfc8674
947
962
.. _Doctrine Batch processing : https://www.doctrine-project.org/projects/doctrine-orm/en/2.14/reference/batch-processing.html#iterating-results
963
+ .. _`CHIPS` : https://developer.mozilla.org/en-US/docs/Web/Privacy/Partitioned_cookies
You can’t perform that action at this time.
0 commit comments