Skip to content

DOCSP-49324: dedicated session handler #3364

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 3 commits into from
Apr 18, 2025
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
15 changes: 12 additions & 3 deletions docs/sessions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,18 @@ In this guide, you can learn how to set up HTTP sessions by
using {+odm-long+}. Sessions allow your application to store information
about a user across multiple server requests. Your application stores this
information in a specified location that it can access in future
requests that the user makes. The session driver in {+odm-long+} uses
the ``MongoDbSessionHandler`` class from the Symfony framework to store
session information.
requests that the user makes.

.. note:: Session Handler Implementation

The v5.4 {+odm-long+} introduces the dedicated
``MongoDbSessionHandler`` class that extends the Laravel
``DatabaseSessionHandler`` class to store session information.
The ``mongodb`` session driver saves user IDs, IP addresses, and user
agents if present.

In v5.3 and earlier, the session driver uses the
``MongoDbSessionHandler`` class from the Symfony framework.

To learn more about support for sessions, see `HTTP Session
<https://laravel.com/docs/{+laravel-docs-version+}/session>`__ in the
Expand Down
Loading