WordPress already tracks sessions. It just never shows them to you, and gives you no way to end one.
What is recorded
Per session: user, device type, browser, operating system, IP address, country where a source for it is available, when it started, when it was last used, and when it expires.
Sessions are keyed by a hash of the session token, never the token itself. The mirror can tell you a session exists and end it; it cannot be used to impersonate one.
Three scopes for ending them
- One session — the stale one on a laptop somebody no longer has
- This user, everywhere — the standard move when an account is in doubt
- Every user on the site — the one you reach for during an incident
The session a site-wide sign-out spares
Your own current browser, and only that one.
Your *other* sessions go with everybody else's. That is deliberate: the button cannot lock you out of the screen you just pressed it on, and it cannot quietly leave you signed in somewhere else either. A site-wide sign-out that spared all of your sessions would be lying about what it did.
What multiple sessions tell you
An account with three simultaneous sessions, on three device types, from two countries, is not one person with three laptops.
Shared credentials are almost never disclosed — nobody thinks to mention it. Concurrent sessions is the signal that makes it visible without anybody having to admit anything, and the device count on the user list is the same signal at a glance.
Online status
"Online" means active within the last five minutes. That drives the Online column, the Online filter, the admin-bar counter and the dashboard widget.
Activity is recorded at most once per minute per user, throttled, so somebody clicking rapidly writes one row rather than forty.
Cleanup
Expired rows are swept daily, and the list is verified against WordPress's own session store before anything is displayed — so a session WordPress has already invalidated never lingers here to mislead you.