Skip to content

Article about logout. #6911

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

Closed
wants to merge 1 commit into from
Closed
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
16 changes: 8 additions & 8 deletions security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,14 @@ key:
Logging Out
-----------

.. caution::

Notice that when using http-basic authenticated firewalls, there is no
real way to log out : the only way to *log out* is to have the browser
stop sending your name and password on every request. Clearing your
browser cache or restarting your browser usually helps. Some web developer
tools might be helpful here too.

Usually, you'll also want your users to be able to log out. Fortunately,
the firewall can handle this automatically for you when you activate the
``logout`` config parameter:
Expand Down Expand Up @@ -1173,14 +1181,6 @@ is defined by the ``target`` parameter above (e.g. the ``homepage``).
:class:`Symfony\\Component\\Security\\Http\\Logout\\LogoutSuccessHandlerInterface`.
See :doc:`Security Configuration Reference </reference/configuration/security>`.

.. caution::

Notice that when using http-basic authenticated firewalls, there is no
real way to log out : the only way to *log out* is to have the browser
stop sending your name and password on every request. Clearing your
browser cache or restarting your browser usually helps. Some web developer
tools might be helpful here too.

.. _security-role-hierarchy:

Hierarchical Roles
Expand Down