Logout is the act of terminating an authenticated session when it’s no longer needed, thus minimizing the likelihood that unauthorized parties can “take over” the session. This is typically achieved by provisioning a logout option on the user interface you provide to your users. Multiple types of sessions can be created when a user logs in (e.g., local application sessions, Auth0 session, third-party sessions), and you will need to determine which of these sessions need to be terminated when the user clicks any Logout option.Documentation Index
Fetch the complete documentation index at: https://docs-staging.auth0-mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Best Practice
Your logout behavior should make it clear to a user which session(s) are being terminated, and ideally, will display a visual confirmation of logout afterward.- Which sessions should be terminated when the user initiates logout?
- What information should you provide to users as confirmation of the sessions terminated?
- Where should users be redirected to after logout completes?
- How long do you want sessions to last in the event that users do not trigger the logout process?
Where to send users after logout
Once your user logs out, they will be redirected to a specific location of your choosing. This location is specified as the logout redirect URL, and you can define this as a parameter via the . The URL(s) you use to redirect users after logging out must be allowlisted in the Dashboard to mitigate open-redirect security vulnerabilities. You can allowlist them at the tenant or application levels.If the user logs out and you redirect them back to the application, and the application redirects to an Identity Provider that still has a valid session for the user, the user will be logged in silently to the application. This may appear to the user as if the logout process didn’t function properly.