Skip to content

[HttpFoundation] Document the unix_socket and charset options for MySQL PdoSessionHandler #15216

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 1 commit into from
Apr 12, 2021
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
10 changes: 10 additions & 0 deletions session/database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,16 @@ first register a new handler service with your database credentials:
;
};

.. tip::

When using MySQL as the database, the DSN defined in ``DATABASE_URL`` can
contain the ``charset`` and ``unix_socket`` options as query string parameters.

.. versionadded:: 5.3

The support for ``charset`` and ``unix_socket`` options was introduced
in Symfony 5.3.

Next, use the :ref:`handler_id <config-framework-session-handler-id>`
configuration option to tell Symfony to use this service as the session handler:

Expand Down