100% Free · Open Source GPLv2 · Zero setup requiredGet the Plugin

Opens in a new tab
ITX UserOps

Back to Blog

Somebody left a laptop on a train

The password is irrelevant — the machine was already signed in. What a live session can actually do, what changing the password does not fix, and the twenty minutes that matter.

Operations

The message arrives at 18:40. *I left my laptop on the train.*

The first question everybody asks is about the password. It is the wrong question. The laptop was signed in. Whoever has it does not need the password, because they do not need to log in.

What a live session can do

A WordPress session cookie is a bearer credential. Anyone holding it is that user until it expires, and core's default is two days — fourteen if "remember me" was ticked, which it was.

With an editor's session that means publishing, unpublishing and editing anything on the site. With an administrator's, it means all of that plus installing a plugin, which is the same as arbitrary code execution on your server.

And a live session can do something worse than any single action: it can mint credentials that outlive it. An application password created from that session keeps working after the cookie expires, after the password changes, and after the laptop is remotely wiped. That is the difference between a bad evening and a persistent compromise, and it is invisible unless you go looking.

What changing the password does not do

It is the reflex, and it is only partly right.

WordPress destroys other sessions when a password changes, so the cookie stops working. Good. But:

  • It does not revoke application passwords. That is by design — they exist for unattended use — which means any credential minted in the last twenty minutes survives your reset.
  • It does not revoke passkeys. If the laptop had one registered, and the laptop unlocks with a fingerprint that is no longer available to a thief, that is probably fine. If it unlocks with a PIN written on a sticky note, it is not.
  • It tells you nothing about what happened, because it is an action, not an investigation.

The twenty minutes that matter

In order, and the order is the point.

1. End that person's sessions — all of them

Not "the laptop's session", because you cannot identify it reliably and you should not spend the time trying. End every session that account has. They are one person; signing them out of their phone as well costs them thirty seconds.

Do this from an admin screen, not by asking them to do it, because they are on a train without a laptop.

2. Check what credentials the account holds

Application passwords and passkeys, for that account, right now. Anything created today that the owner cannot account for is the actual incident and everything else is precaution.

This is the step people skip, and it is the only one that distinguishes "the cookie is dead" from "they are out".

3. Force a password reset

Not because the password was compromised — it probably was not — but because it closes the door on a browser-saved credential and on anything typed while somebody was watching.

4. Read the activity log for that account

Everything from the moment the laptop was last in their hands. Posts changed, settings touched, users created, plugins activated. Twenty minutes of reading answers "did anything happen" definitively rather than by assumption.

If the answer is that something did happen, you are now in a different situation and the response is containment rather than tidying up.

5. Decide whether to disable the account

If the person will be offline for a day and you are not certain, disabling is free. It closes all four authentication channels, it deletes nothing, and it reverses in one click when they get a new machine. A disabled account is a decision you are allowed to get wrong.

The setting that would have shortened this

Session lifetime. WordPress gives you two days or fourteen, and no way to change it without code.

An absolute maximum — eight hours suits a staff-only site with a working day — means a laptop left somewhere overnight is signed out before anybody finds it. An idle timeout does the same for a machine that is on but unattended.

Two caveats worth knowing before you switch either on:

A session policy screen with settings for absolute session lifetime, idle timeout, a cap on concurrent sessions per account, and what happens to sessions and application passwords when a password changes.
WordPress gives you two days, or fourteen. These are the four numbers it does not let you set.
  • Applying a short absolute lifetime to *customers* on a store produces a lot of confused re-authentication for very little benefit. Scope it to staff roles.
  • Turning on an idle timeout naively signs out every session on the site immediately, because every existing session's last activity predates the setting. Any sane implementation records the moment the rule was enabled and does not expire sessions on the strength of activity recorded before it. Check that yours does before you save.

The one that would have prevented the worst outcome

Sudo mode. Re-authentication before sensitive actions — role changes, disabling accounts, issuing credentials, editing security settings — with a short window, typically fifteen minutes.

A stolen live session can read everything. What it cannot do is quietly promote an account or mint an API credential, because those actions ask for the password again and the thief does not have it.

This is the control that turns "an administrator session is loose" from a catastrophe into a bad evening. It costs the legitimate user one prompt per batch of sensitive work.

Afterwards

Two things worth doing once the immediate work is done.

Check whether the sign-in was noticed. If the laptop was used, it was used from a device signature the account had seen before — the same browser, OS and network — so a new-device alert would *not* have fired. That is correct behaviour and it is worth understanding: device-based alerting catches an attacker on their own machine, not an attacker on yours.

Ask what the session lifetime should be, now, while the answer feels obvious. It will not feel obvious in three months.

What this is not

It is not a disk encryption post, and disk encryption is the actual answer to the physical device. FileVault or BitLocker, enforced, means the laptop is a brick and none of the above matters.

But you cannot verify that from the WordPress admin at 18:40, and "they said it was encrypted" is not a control. Do the session work anyway.

—

*ITX UserOps lists every live session per account with device, browser, IP and country, ends one or all of them, and spares only your own current browser on a site-wide sign-out. Sessions and disabling are in the free plugin — documented here. Session lifetime and idle timeouts, sudo mode and one-action containment are premium.*

A clearer WordPress admin
starts here.

Start with the free plugin. Add more control when you need it.

Log in

Vote on ideas, submit your own and join the discussion.