Skip to content
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