Session management
In the Casdoor admin panel, view active sessions and end them individually or in bulk. Admins and users can control which devices or browsers stay signed in.
Viewing sessions
- Open Sessions in the sidebar.
- You’ll see all active sessions for the organization, with user, application, creation time, and session IDs.
Each row is one user–application pair; multiple session IDs in a row mean the user is signed in from more than one device or browser.
Deleting a single session
Ending a specific session revokes access from that device or browser only. Use this to:
- Revoking access from a lost or stolen device
- Terminating a suspicious login from an unfamiliar location
- Managing sessions across multiple devices individually
- Logging out from specific browsers while staying logged in elsewhere
Steps
On the Sessions list, each session’s IDs appear as tags. To remove one:
- Find the session row.
- Click the × on the session ID tag you want to end.
- Confirm in the dialog.
That session is invalidated immediately; the user is signed out on that device or browser only.
Current session protection
The session you are currently using cannot be deleted. Attempting to delete it shows:
"session id {session-id} is the current session and cannot be deleted"
Use the normal logout flow to sign out of your current session.
Deleting all sessions
When you delete a session record entirely (not just a single session ID), Casdoor handles it intelligently:
- If the session record has multiple session IDs, deleting one ID removes just that session
- If only one session ID remains and you delete it, the entire session record is removed
- Delete the entire session record with the row's delete button
Deleting all sessions for a user effectively logs them out from all devices and browsers simultaneously.
API for Session Deletion
Developers can programmatically delete sessions using the Casdoor API: