Linux 软件免费装
Banner图

Axle Sessions

开发者 aryanjasala
更新时间 2026年11月30日 02:56
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

security login logout sessions devices

下载

1.0.1

详情介绍:

WordPress already keeps a record of every login: which browser, which IP address, when it started and when it ends. It just never shows it. The only control is "Log Out Everywhere Else" on your own profile, so nobody can see which devices are signed in, sign out just the lost phone, or see who is signed in across the site. Axle Sessions shows those sessions and lets you end them. For everyone, on their profile: For administrators: "Last active" is saved inside each session, at most once every 5 minutes per session, so it costs almost nothing. Free and open source under the GPL. No pro version, no upsells, no ads in wp-admin, no tracking. And it stays that way. Privacy Sessions hold an IP address and a browser string. The plugin takes part in Tools > Export Personal Data (it lists a user's sessions) and Tools > Erase Personal Data (it lists sessions, sign-in history and reports, and signs the user out everywhere and forgets them), adds suggested text to Settings > Privacy, and can store shortened IP addresses. The new device email keeps only a scrambled fingerprint of each browser and network, never the address, and forgets it after 30 days. Shared login detection uses only what the sessions already hold and calls no outside service. Sign-in history keeps the device, the IP address as stored, the times and how each session ended for 90 days by default (you can change it, or set 0 to keep none). A "This wasn't me" report keeps the device, address and time for administrators, until the user's data is erased or newer reports push it out of the latest 50. The log of "Sign everyone out" keeps the time, which administrator did it and the counts, not who was signed out, for the latest 20 runs. A session's own record, with its IP address and browser string, is deleted when the session ends. Nothing is sent to any outside service, and the plugin loads no files from outside your site. Deleting the plugin removes its settings, history, reports and flags. When an account looks shared, a copy of the sessions behind it is kept with the reasons for 7 days after the last sign, and the export and erase tools cover it. WP-CLI For developers Every limit and default has a filter, and every sign out fires an action. The full list is in the reference.

屏幕截图:

  • Users > Sessions with every signed-in device on the site.
  • Users > Sessions > Policies with policies per role.
  • A login refused over the session limit, with the other devices to sign out.
  • The "This wasn't me" page, listing the application passwords it will revoke.
  • Sign everyone out, with the application passwords to revoke.

常见问题:

Does signing out a session log that browser out right away?

On its next request. The session is deleted at once, so the next page it loads, or the next background check from an open admin tab, lands on the login screen.

What counts as activity for the idle timeout?

Any page or REST request made while signed in. The Heartbeat checks an open admin tab makes every minute do not count, so a forgotten tab still times out.

What happens to people already signed in when I turn on a limit?

Nothing until they sign in again. The limit is applied at login. An idle timeout applies to existing sessions from their next request.

Will "Refuse the new login" lock out someone who lost their phone?

No. After they enter the right password (and the Two Factor code, if they use it), they see their other devices and can sign one out to get in. This is offered to accounts that use Two Factor, and to accounts that cannot manage options or promote users. An administrator without Two Factor is never offered it, so a stolen password alone cannot push out their session. The list works once, in that browser, for 10 minutes. You can turn this off in the Policies tab. Then a refusal is final until the old session ends or an administrator signs it out. Signing out the oldest session stays the default.

Does "This wasn't me" stop an API key someone made?

Yes. It revokes every application password on the account, and so does "Sign everyone out" (except yours, so you can finish the job). A person can make new ones after signing in again.

Does it work with social login and two-factor plugins?

Yes, for plugins that sign people in through WordPress's own login functions. A plugin that sets the login cookie itself cannot be refused before the session exists, so in refuse mode that session is ended right after it starts.

How does it decide that an account looks shared?

From the sessions it already has: the network of each IP address, the browser and device, and when each session was last used. By default it flags more than two networks at the same time, two computers (or two phones, or two tablets) on different networks at the same time, or more than four different devices in a day. A laptop on Wi-Fi and a phone on mobile data are one person, so they are not flagged. Developers can change every limit with the axle_sessions_shared_login_rules filter, and add countries from their own lookup.

Will it lock out people who share an account on purpose?

No. By default it only shows a badge. Signing out every session but the newest is a choice per role, and a login is never refused. For accounts meant to be shared, such as a kiosk, set the role to "Do not check" or use the axle_sessions_shared_login_exempt filter.

Is the "This wasn't me" link safe?

The link holds a random token, and only a hash of it is stored. It is tied to one account and one session, works once, and expires after 7 days. Opening it only shows a page, so mail scanners that follow links do nothing. A wrong or used link gets the same page, and many wrong guesses from one address are slowed down. You can turn it off in the settings.

Why does "Sign everyone out" not email people?

An incident is a bad time for a mass email. People who are signed out see a message on the login screen. If you also require new passwords, they use "Lost your password?". Your own password is left alone so you can still sign in.

Does it work on multisite?

Yes. Users and their sessions are shared by the network, so the all-sessions screen and the settings live in Network Admin, and only network administrators change the settings. Device memory, sign-in history and reports are kept per user for the whole network. The hourly clean-up runs from the main site. Policies follow the roles a user has on the site they are using. People who may not edit other users see only their own sessions, on their profile.

My host or another plugin stores sessions in Redis. Will this work?

No. The plugin reads sessions from user meta, where WordPress keeps them by default. When another plugin moves them, the screens and Site Health say so.

更新日志:

1.0.1 1.0.0