8000 Adding MigratingSessionHandler docs by rossmotley · Pull Request #9496 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Adding MigratingSessionHandler docs #9496

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 5 commits into from
May 24, 2018
Merged
Changes from 1 commit
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
Prev Previous commit
Added the versionadded directive
  • Loading branch information
javiereguiluz authored May 24, 2018
commit e93756f975139078fe7363c4279654ae63d6fc3a
4 changes: 3 additions & 1 deletion components/http_foundation/session_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ Example usage::
Migrating Between Save Handlers
-------------------------------

.. versionadded:: 4.1
  The ``MigratingSessionHandler`` class was introduced in Symfony 4.1.

If your application changes the way sessions are stored, use the
:class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\MigratingSessionHandler`
to migrate between old and new save handlers without losing session data.
Expand All @@ -110,7 +113,6 @@ This is the recommended migration workflow:

#. After verifying that the sessions in your application are working, switch
from the migrating handler to the new handler.
$sessionStorage = $newSessionStorage;

Configuring PHP Sessions
~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
0