Linux 软件免费装
Banner图

Loggedin - Session Manager: Limit Concurrent Logins & Auto Logout

开发者 joelcj91
duckdev
foxelabs
更新时间 2026年11月9日 04:25
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

auto logout concurrent login session management force logout account sharing

下载

1.0.1 1.1.0 1.2.0 1.3.0 3.4.1 2.0 2.0.2 3.2.0 2.0.3 3.3.1 1.3.2 2.0.4 3.0.1 2.0.1 3.0.0 3.0.2 1.3.1 3.1.0 3.3.0 3.4.0

详情介绍:

Loggedin is a free session and login manager for WordPress. It limits how many devices one account can be signed in on at the same time, signs out idle users automatically, and lets administrators sign any user out of every device. It stops account sharing on membership sites, online courses and subscription stores, without slowing logins down. Loggedin works with the sessions WordPress already creates, through the standard WP_Session_Tokens API. It needs no cron jobs, no background polling and no external services, and it works with any theme and host. Loggedin at a glance What you can do with Loggedin Limit concurrent logins Auto logout idle users Force logout and session management Lockout recovery For your users For developers How the concurrent login limit works WordPress creates a session each time someone logs in: one per browser, per device. A phone and a laptop are two sessions. Two browsers on one laptop are two sessions too. Closing a tab doesn't end a session; it stays until the user logs out, it expires, or something ends it. On every login, Loggedin counts the account's active sessions and compares the count with your limit. If the new login would go over it, Loggedin applies the rule you picked: sign out the oldest device, sign out every other device, or refuse the new login. Changing the limit never signs anyone out on the spot. It applies from the next login. Who uses Loggedin Add-ons Loggedin is complete on its own. These official add-ons extend it: Documentation Bug reports Report bugs on GitHub. For help using the plugin, use the WordPress.org support forum.

安装:

  1. In the WordPress admin, go to Plugins → Add New Plugin, search for "Loggedin" and click Install Now.
  2. Click Activate.
  3. Go to Users → Loggedin to set the login limit and choose what happens when it's reached.
On a new site the limit is one device per account, and a new login signs out the others. Turn on auto logout under Users → Loggedin → Auto logout.

屏幕截图:

  • Lockout and recovery: leave administrators out of the limit, write the blocked-login message, let blocked users sign out their other devices by email, and choose where signed-out devices go.
  • Auto logout: sign out idle sessions after a countdown, set timeouts per role, sign out other devices on a password change, and set how long a login lasts.
  • Sessions: sign one user out of every device, or sign out every user on the site at once.
  • The Users screen with Sessions and Last login columns, and a Sign out everywhere link for each user.
  • Your sessions on the profile screen: each user sees the devices they're signed in on and can sign any of them out.
  • A login refused by Block New, with the link that emails the user a way to sign out their other devices.
  • The countdown shown before an idle session is signed out.

升级注意事项:

3.4.1 Fixes critical errors on the login screen and other pages when another plugin passes Loggedin something unexpected. Recommended for everyone on 3.4.0. 3.4.0 New settings screen, free built-in auto logout, self-unlock by email and sessions on the Users screen. Requires WordPress 6.5. Update your Loggedin add-ons too. 3.3.1 Fixes some valid add-on license keys being rejected as invalid. Update, then activate your add-on license again if it failed before.

常见问题:

How do I limit concurrent logins in WordPress?

Install and activate Loggedin, go to Users → Loggedin → Login limits, set the maximum number of active logins and choose a login logic: Logout Oldest, Logout All or Block New. Save. The limit applies from each user's next login.

How do I prevent account sharing on my membership site?

Set the limit to 1. With Logout All or Logout Oldest, a second person logging in signs the first one out, so sharing one account becomes annoying fast. With Block New, the second login is refused until the first device signs out. Loggedin works with MemberPress, Paid Memberships Pro, WooCommerce, LearnDash and other plugins that log users in through WordPress.

How do I automatically log out inactive users?

Go to Users → Loggedin → Auto logout, turn on idle logout and set the timeout in minutes. Users see a countdown before they are signed out, and each role can have its own timeout. It's free and built in since version 3.4.0.

How do I force logout a user in WordPress?

Go to Users → Loggedin → Sessions, enter the user's ID, email or username under Force Logout and click the button. Every session of that user ends immediately. You can also use Sign out everywhere on the user's row on the Users screen, or run wp loggedin sessions destroy <user>.

How do I log out all users at once?

Click Logout All Users on Users → Loggedin → Sessions, or run wp loggedin sessions destroy-all. It finishes instantly at any number of users because it sets one site-wide cut-off time instead of looping through accounts. Your own session stays signed in.

How can I see who is logged in to my WordPress site?

The Users screen shows each user's number of active sessions and their last login. Each user sees their own devices under Your sessions on their profile. For a live list of everyone signed in right now, with every device, add the Active Sessions add-on.

Can I set different limits for administrators and subscribers?

Yes, with the Limit Per Role add-on. Each role gets its own limit, for example 5 for administrators and 1 for subscribers. A user with several roles gets the highest. To leave administrators out of the limit altogether, turn on Don't limit administrators in the free plugin.

Can I set a different limit for one user?

Yes, with the Limit Per User add-on, which adds a limit field to the user's profile.

A user is locked out by Block New. What can they do?

If self-unlock is on, the error shows a link after the right password. The user gets an email with a link that signs out all their devices, and can then log in. An administrator can also force logout the user from the Sessions page.

Why was I signed out with "your account signed in on another device"?

Someone logged in to your account on another device, and the site allows only a set number of devices at once, so this one was signed out. If it wasn't you, change your password.

Will installing Loggedin or changing the limit log out current users?

No. Loggedin acts only when someone logs in. Existing sessions stay until they expire, the user logs out or a later login replaces them. Turning on auto logout gives every session the full timeout from the moment you save.

Does Loggedin work with WooCommerce, MemberPress, LearnDash and BuddyPress?

Yes. Any plugin that logs users in through WordPress is covered with no extra setup. Social login, magic-link and popup login plugins are covered under Logout Oldest and Logout All; Block New can refuse them only when the plugin checks first, as Nextend Social Login does. Tested with WooCommerce, Ultimate Member, Nextend Social Login, Magic Login, Two Factor, Limit Login Attempts Reloaded, WPS Hide Login and User Switching. See compatibility.

Is Loggedin the same as a "limit login attempts" plugin?

No. Limit login attempts plugins block repeated wrong passwords to stop brute-force attacks. Loggedin limits how many devices a valid account can be signed in on at the same time. They do different jobs and work well together.

Does Loggedin work with Redis or other session storage?

Yes for Logout All, Block New, force logout and log out all users, which go through the standard WP_Session_Tokens API. Logout Oldest and the per-device lists need WordPress's default session storage in user meta.

Does Loggedin slow down my site?

No. Loggedin does its main work when someone logs in or out, and on its own admin screens. On other pages it only reads its settings and, with auto logout on, the signed-in user's last activity. There's no cron, no polling and no remote request. With auto logout on, a small script tracks activity in the browser and checks in with the server at most once a minute while the page is in use.

Is Loggedin GDPR compliant?

Loggedin calls no external services and sends no data anywhere. It uses the session records WordPress already keeps, which hold the IP address and browser of each login, and stores each user's last login time and, with auto logout on, when each session was last active. The profile screen shows only part of the IP address. Mention WordPress sessions in your privacy policy as you would without the plugin.

How long does a WordPress login last?

By default, 14 days with "Remember Me" checked and 2 days without. Change both under Users → Loggedin → Auto logout → Session length, or with the auth_cookie_expiration filter.

Can I change the message shown when a login is blocked?

Yes, under Users → Loggedin → Lockout & recovery. Developers can also use the loggedin_error_message filter: php add_filter( 'loggedin_error_message', function ( $message ) { return 'Your account is already signed in on another device.'; } );

Does Loggedin support WP-CLI?

Yes. wp loggedin sessions lists, counts and ends a user's sessions, and wp loggedin settings reads and changes settings. Commands that end sessions ask for confirmation unless you pass --yes. Run wp help loggedin or see the WP-CLI docs.

更新日志:

3.4.1 3.4.0 3.3.1 3.3.0 3.2.0 3.1.0 3.0.2 3.0.1 3.0.0