Reference articles on history, science, culture and more
Encyclopedia

Login session

Time spent logged into a computer system

Image credit is listed at the end of this article.

In computing, a login session (or logon session on Windows NT-based systems) is the period of activity between a user logging in and logging out of a (multi-user) operating system.

On Unix and Unix-like operating systems, a login session takes one of two main forms:

  • Where an X display manager is employed, a login session is considered to be the lifetime of a designated user process that the display manager invokes.

On Windows NT-based systems, logon sessions are maintained by the kernel, and control of them is overseen by the Local Security Authority Subsystem Service (LSASS). On user authentication, Winlogon requests LSA to create a logon session and a corresponding token including a logon ID, a 64-bit value identifying the session. Each process started on the system is tied to a token. On logout, the system requests all of the processes belonging to a logon session to close. Windows has three logon sessions that start on boot, with hardcoded logon IDs: SYSTEM (logon ID 999/0x3e7), Local Service (997/0x3e5), and Network Service (996/0x3e4). A special type of logon session also exists for null sessions.

Watch videos about Login sessionExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Login session, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Images, from Wikimedia Commons:

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.