Home

User Session

A user session is the active window during which an authenticated user can interact with the system. It starts at login, is maintained through a session token or cookie, and ends when the user explicitly logs out or when the session expires due to inactivity or a time limit. While the session is active, the system can trust that requests are coming from the authenticated user.

Sessions carry context. They keep the user logged in across page loads and tab switches without requiring repeated authentication. They also track the current device and browser, which is how session management pages show a user their active sessions across multiple devices.

From a security standpoint, sessions need careful handling. Long-lived sessions that never expire create risk if a device is lost or a token is stolen. Administrators often set maximum session durations, require re-authentication for sensitive operations, and give users the ability to revoke specific sessions remotely.