Skip to content

Document session cookie in response #18832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions session.rst
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,13 @@ Check out the Symfony config reference to learn more about the other available
``session.auto_start = 1`` This directive should be turned off in
``php.ini``, in the web server directives or in ``.htaccess``.

Session cookie is available in the ``Response`` object. It's useful in the CLI context
or php runtime with runners like Roadrunner or Swoole.

.. versionadded:: 5.4

Accessing to the session cookie in the ``Response`` object was introduced in Symfony 5.4.

Session Idle Time/Keep Alive
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down