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
12 changes: 6 additions & 6 deletions reference/configuration/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ the current firewall and not the other ones.
logout_on_user_change
~~~~~~~~~~~~~~~~~~~~~

**type**: ``boolean`` **default**: ``false``
**type**: ``boolean`` **default**: ``true``

.. versionadded:: 3.4
The ``logout_on_user_change`` option was introduced in Symfony 3.4.
.. versionadded:: 4.1
The ``logout_on_user_change`` option was deprecated in Symfony 4.1.

If ``true`` this option makes Symfony to trigger a logout when the user has
changed. Not doing that is deprecated, so this option should be set to ``true``
to avoid getting deprecation messages.
If ``false`` this option makes Symfony to not trigger a logout when the user has
changed. Doing that is deprecated, so this option should set to ``true`` or
unset to avoid getting deprecation messages.

The user is considered to have changed when the user class implements
:class:`Symfony\\Component\\Security\\Core\\User\\EquatableInterface` and the
Expand Down