Sign out

Also known as: log out

On this page 7

Sign out, also called log out, is the action that ends an interactive user session on a computer: the operating system closes the programs that belong to the account, releases its resources and returns to the login screen. In modern operating systems, signing out is one of the basic mechanisms behind user accounts, because it draws a clear boundary between one person’s work and the next.

Signing out differs from locking the screen, switching users or shutting down. Only sign out terminates every process of the session while leaving the machine running, which makes it the right step on shared computers and an important part of session hygiene on any multi-user system.

What happens when a user signs out

A sign-out is an orderly teardown of the user session that the operating system performs in a fixed sequence. The session manager first asks every running application to close, gives each one a short grace period to save data, and then forcibly terminates whatever is still running.

The sequence below is broadly the same on Windows, macOS and Linux desktops, although component names differ. On Windows, the Winlogon process and the session manager coordinate the steps; on macOS, loginwindow sends quit events to applications; on Linux, systemd-logind and the display manager end the session scope.

StageWhat the system doesWhy it matters
Close requestSends a polite quit message to each applicationLets programs save documents and settings
Grace periodWaits a few seconds for responsesPrevents data loss from abrupt termination
Forced terminationEnds processes that did not exitGuarantees the session actually closes
Profile write-backSaves registry hive or preference filesKeeps settings for the next sign-in
Credential cleanupDestroys the access token and cached ticketsRemoves the account’s authority from memory
Return to login screenShows the sign-in interface againMakes the device ready for another user
Main stages of a sign-out

The credential cleanup step is the security core of the operation. While a session is active, the system holds an access token or equivalent identity object that grants the account its permissions. After sign out, no process with that identity remains, so nothing can act with the departed user’s rights.

Sign out compared with lock, switch user and shut down

Sign out is one of four ways to leave a computer, and each keeps a different amount of state alive. Choosing the wrong one is a common cause of lost work or exposed data, so the distinctions are worth knowing precisely.

ActionSession processesMemory use afterwardTypical purpose
LockKeep runningUnchangedShort break at a personal device
Switch userKeep running in backgroundTwo or more sessions in RAMAnother person needs the device briefly
Sign outTerminatedFreed for the next userEnding work on a shared computer
Shut downTerminated with the whole systemMachine powered offEnding all use of the hardware

Fast user switching keeps the first session alive in the background, which is convenient but leaves its open files and running programs in memory. A locked session still holds unsaved documents and active credentials, protected only by the lock screen. Signing out is therefore the cleanest handover between people short of a full restart.

On Windows, a restart or shutdown also performs a sign-out of every session first, which is why the system may warn that other users are still signed in and could lose unsaved work.

Why sign out matters for security and privacy

The main security value of sign out is that it removes the window for session hijacking. An unattended but signed-in computer allows anyone with physical access to read email, open files and use saved browser passwords with the owner’s identity.

  • Shared and public computers: signing out prevents the next person from inheriting open documents and cached credentials.
  • Domain environments: signing out releases Kerberos tickets and ends access to network shares mapped for the user.
  • Roaming profiles: the sign-out is when changed profile data is synchronized back to the server, so skipping it can lose settings.
  • Licensing and auditing: many systems record sign-in and sign-out events, which gives administrators an accurate session timeline.

Signing out of the operating system is not the same as signing out of web services. A browser session cookie stored in the profile may survive and be reused at the next sign-in by the same account, so users on shared accounts should also end sessions inside the browser.

How to sign out on common desktop systems

Every desktop platform offers both a menu path and a keyboard route to sign out, and administrators can also trigger it from the command line or through policy. The table lists the most common methods.

PlatformMenu pathKeyboard or command
Windows 10 and 11Start, account picture, Sign outCtrl+Alt+Delete then Sign out, or shutdown /l
macOSApple menu, Log OutShift+Command+Q
GNOME on LinuxSystem menu, Power Off or Log Outgnome-session-quit --logout
KDE PlasmaApplication launcher, Leave, Log Outqdbus call to the session manager
Terminal sessionNot applicableexit or logout

Administrators frequently configure automatic sign-out after inactivity on lab computers, kiosks and shared workstations. On Windows this is done with group policy or task scheduling; on Linux, systemd-logind and display managers support idle session limits. Such timers should warn users first, because a forced sign-out discards unsaved work.

Common problems and misconceptions

Most sign-out problems come from applications that refuse to close or from background processes that keep the profile locked. The decision table below links typical symptoms to causes and fixes.

SymptomLikely causeRecommended fix
Sign-out hangs on a messageAn application blocks with an unsaved-changes dialogSave or close the program, then sign out again
Settings lost after sign-inProfile could not be written backCheck disk space and profile permissions
Temporary profile loadedPrevious session left the profile lockedRestart and let the system release the hive
Processes still running afterwardServices or scheduled tasks run under the accountReview tasks configured to run without sign-in

A frequent misconception is that closing a laptop lid signs the user out. In most configurations it only puts the machine to sleep with the session intact, so the next person who opens it reaches a lock screen, not a fresh login screen. Another misconception is that sign out deletes personal files; it only closes the session, while the home directory and user profile remain on disk.

In plain words

Signing out is like handing back the keys to a shared office. You tidy your desk, close the drawers, and leave the room ready for the next person. The computer closes your programs, saves your settings and forgets that you were there.

Locking the screen is different: it is more like closing the office door while your papers stay on the desk. Sign out when you are done, especially on a computer that other people also use.

A real-world example

A university library runs forty Windows workstations that students share throughout the day. Each student signs in with a domain account, and the IT team has configured a policy that signs out idle sessions after 15 minutes, with a warning shown at the 13-minute mark.

Before the policy, staff regularly found computers still signed in with open email and student records visible. After the change, each sign-out closes the browser, releases the student’s network drive and returns the machine to the login screen. The result is fewer privacy incidents and more available seats, because abandoned sessions no longer block workstations for hours.