Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit86fa70b

Browse files
authored
Update http_foundation.rst
1 parentfefc2f2 commit86fa70b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎components/http_foundation.rst‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,14 @@ method takes an instance of
377377
You can clear a cookie via the
378378
:method:`Symfony\\Component\\HttpFoundation\\ResponseHeaderBag::clearCookie` method.
379379

380+
You can also create a
381+
:class:`Symfony\\Component\\HttpFoundation\\Cookie` object from a raw header value using:method:`Symfony\Component\HttpFoundation\Cookie::fromString`.
382+
383+
..tip::
384+
385+
You can directly send the cookie from a string using
386+
``$response->headers->set('set-cookie', 'key=value; secure', $replace)``.
387+
380388
Managing the HTTP Cache
381389
~~~~~~~~~~~~~~~~~~~~~~~
382390

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp