Overview
Key Concepts
- Review different session layers.
- Learn how to redirect users after logout.
- Application Session Layer: The first layer is the session inside your application. Though your application uses Auth0 to authenticate users, you’ll still need to track that the user has logged in to your application. In a regular web application, you achieve this by storing information inside a cookie. Log users out of your applications by clearing their sessions. You should handle the application session in your application.
- Auth0 Session Layer: Auth0 also maintains a session for the user and stores their information inside a cookie. The next time a user is redirected to the Auth0 Lock screen, the user’s information will be remembered. Log users out of Auth0 by clearing the Single Sign-on (SSO) cookie.
- Identity Provider Session Layer: The last session layer is the identity provider layer (for example, Facebook or Google). When users attempt to sign in with any of these providers and they are already signed into the provider, they will not be prompted again to sign in. The users may be asked to give permission to share their information with Auth0 and, in turn, your application. It is not necessary to log the users out of this session layer, but you can force the logout. (For more information, see Log Users Out of Identity Providers and Log Users Out of SAML Identity Providers.)