Force Logout
The Force Logout panel sits at the bottom of the Settings tab — Users → Loggedin → Settings. It lets an administrator immediately terminate every active WordPress session belonging to a specific user. Use it when someone is locked out by the concurrent-session limit and can't reach their other devices to log them out, or when you want to revoke access to an account that's been left signed in somewhere you can't reach.
How it works
When you submit the form, Loggedin:
- Resolves the identifier you typed to a real
WP_User(see accepted identifiers below). - Calls
WP_Session_Tokens::get_instance( $user_id )->destroy_all(), which removes every active session token for that user. - Fires the
loggedin_destroy_all_sessionsaction so add-ons or custom code can react.
The next time any of that user's devices makes an authenticated request, WordPress will see no matching session token and bounce them back to wp-login. There's no delay or cache — Force Logout takes effect immediately.
User
Input: Text field
A single identifier. The same field accepts three forms; the resolver inspects the value and looks it up appropriately:
| Input looks like | Looked up as |
|---|---|
Digits only (e.g. 42) | User ID |
Contains an @ (e.g. user@example.com) | Email address |
Anything else (e.g. jdoe) | user_login |
If no user matches the identifier, the form shows a not-found notice and no sessions are destroyed.
Force Logout button
Submitting the form fires the action immediately — there is no confirmation dialog, so double-check the identifier before clicking. Unlike the General Settings controls, this button is not gated by the Save Changes button: it has its own REST endpoint (POST /loggedin/v1/sessions/destroy) and fires the moment you click.
While the request is in flight the button shows a busy state and is disabled. A success snackbar appears in the lower-left corner once the sessions are cleared, naming the user that was logged out.
Same thing from the command line
wp loggedin sessions destroy <user> does exactly this, and --token=<hash> narrows it to a single device rather than all of them. See the WP-CLI reference.
Effect on the user
The user being force-logged-out isn't notified. The next page they try to load (or the next REST / AJAX request from an already-open tab) will redirect them to wp-login as an unauthenticated visitor. The Real-time Logout add-on makes that redirect feel instant by polling the server every few seconds; without it, the redirect happens whenever the browser next makes a request.
Permissions
Force Logout requires the manage_options capability — the same capability needed to view the Loggedin settings screen in the first place. There is no per-role override.

