Sessions, SSO, and Logout
On this page
After a user logs in, FusionAuth and each of your applications keep a session for the user. The FusionAuth SSO sessionThe session FusionAuth keeps in the browser after a user logs in through the hosted login pages. While the SSO session lasts, FusionAuth logs the user in to other Applications in the Tenant without asking for credentials. logs the user in to every Application in a Tenant. Your applications decide how long their own sessions last, and can hand that control to FusionAuth with refresh tokens. For a high-level overview, see How Sessions Work.
Choose a page by task:
- To let users log in once for every application, see Enable SSO.
- To change how long users stay logged in, see Configure Session Lifetimes.
- To log users out of one application or all of them, see Log Users Out.
- To end a user's sessions from the Admin UI or a server, see View and Revoke Sessions.
- To look up a timeout, unit, or default, see Session Settings.
Runnable Examples#
The following example repositories are complete, runnable versions of the tasks, each with a Docker Compose file and a Kickstart that configure FusionAuth:
- SSO and front-channel logout between two Express applications. For the steps, see Log Users Out.
- An application dashboard in a custom theme Index page. For the steps, see Enable SSO.
- Centralized sessions across two applications. For the steps, see Centralized Sessions.
- A device limit enforced by a webhook and a device limit with a session picker. For the steps, see Limit Concurrent Sessions.
How Sessions Work
Learn about the sessions that keep a user logged in to FusionAuth and to your applications, and how the sessions relate.
How Logout Works
Learn about what each FusionAuth logout method ends, and how front-channel logout signs a user out of every application.
Enable SSO
Learn how to let users log in once and reach every application in a FusionAuth tenant without logging in again.
Configure Session Lifetimes
Learn how to set how long users stay logged in to FusionAuth and to your applications.
Log Users Out
Learn how to log users out of one application or every application, and where to send users after logout.
View and Revoke Sessions
Learn how to list a user's sessions and end the sessions from the Admin UI, the API, or automatically.
Centralized Sessions
Learn how to track and revoke application sessions in FusionAuth by tying each session to a refresh token.
Limit Concurrent Sessions
Learn how to cap the number of devices a user can stay logged in on at the same time.
Session Settings
Reference for every FusionAuth setting that controls session, token, and logout behavior.
Cookies
Reference for the cookies that FusionAuth sets in the browser, including the SSO session cookie.
Troubleshooting
Learn how to fix common problems with FusionAuth SSO, session lifetimes, and logout.
Related
Learn about the sessions that keep a user logged in to FusionAuth and to your applications, and how the sessions relate.
Learn how to fix common problems with FusionAuth SSO, session lifetimes, and logout.
Learn how to track and revoke application sessions in FusionAuth by tying each session to a refresh token.
Learn about what each FusionAuth logout method ends, and how front-channel logout signs a user out of every application.