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

Opens in a new tab
ITX UserOps
Premium

Session policy

Absolute lifetime, idle timeout and a concurrency cap. WordPress has none of these beyond a fixed cookie.

This page is the reference. For what session policy is for and what it looks like, see the feature overview.

Core gives you a two-day session, or fourteen with "remember me", and nothing else. No idle timeout, no maximum, no limit on how many places one account can be signed in at once.

KeyDefaultMeaning
session.absolute_hours0Maximum lifetime. 0 leaves core alone
session.idle_minutes0Idle timeout. 0 is off; the floor is 5
session.max_concurrent0Concurrent sessions per account. 0 is unlimited
session.force_logout_on_password_changetrue
session.revoke_app_passwords_on_password_changefalse

Everything ships off except one

The password-change cleanup is on; the three limits are off.

Because every one of those three settings ends with somebody being signed out, and a plugin update that silently signed out a site's entire staff would be indefensible.

Absolute lifetime

A hard ceiling regardless of activity. Someone working continuously is still signed out at the boundary and signs in again.

Set it against a real requirement. Eight hours suits a staff-only site with a working day. On a store, applying it to customers produces a lot of confused re-authentication for no security benefit.

Idle timeout

Signs out a session with no activity for N minutes. The floor is 5.

The switch-on problem, and how it is handled. Turn on a 30-minute idle timeout and, naively, every session whose last recorded activity predates the setting is instantly expired — which signs out the entire site the moment you save. So the module records session.idle_enabled_at, the instant the rule was switched on, and will not expire a session on the strength of activity recorded before it. Switching the idle timeout on does not sign anybody out; it starts the clock.

That key has no interface. It is bookkeeping, not a setting.

Concurrency cap

Limits how many sessions one account may have at once. Signing in beyond the cap ends the oldest.

The honest use for this is detecting shared credentials, not preventing them: an account that constantly bumps a cap of three is an account being used by more than one person.

On password change

Ending every other session when a password changes is the correct default. Someone changing a password because they think it was exposed expects exactly that.

Revoking application passwords at the same time is off by default, because it breaks integrations that were legitimately using them — and the person changing their password is often not the person who set up the integration. Turn it on where you know what would break.

Interaction with disabling

Disabling an account already destroys every session immediately, in the free plugin. Session policy is about routine sessions, not incident response — that is Containment.

The kill switch

define( 'ITXUO_DISABLE_SESSION_POLICY', true );

Log in

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