Vai al contenuto
WordPress.org

Italia

  • Temi
  • Plugin
  • Notizie
  • Supporto
    • Documentazione
    • Forum
  • Info
  • Community
    • Manifesto
    • Unisciti alla Community
    • Team
    • Manuali
    • Traduci
    • Meetup italiani
    • WordCamp
    • Five for the Future
    • Proposte di lavoro
    • Swag Store
  • Risorse
    • Directory delle foto
    • Learn WordPress
    • Openverse
    • Pattern
    • Playground
    • Prova l’editor Gutenberg
    • WordPress.tv
  • Eventi
  • Scarica WordPress
Scarica WordPress
WordPress.org

Plugin Directory

Loggedin – Limit Concurrent Sessions

  • Invia un plugin
  • I miei preferiti
  • Accedi
  • Invia un plugin
  • I miei preferiti
  • Accedi
Image
Image

Loggedin – Limit Concurrent Sessions

Di Joel James
Scarica
  • Dettagli
  • Recensioni
  • Installazione
  • Sviluppo
Supporto

Descrizione

Loggedin is a lightweight WordPress plugin that lets you easily limit the number of simultaneous active sessions a user can have. This is a crucial feature for membership sites, online courses, and other platforms where you need to prevent users from sharing their accounts.

🎁 Features

  • Set Global Limits: Define a maximum number of concurrent logins for all users.
  • Flexible Login Behavior: Choose to either block new logins when the limit is reached or automatically log out the oldest session to allow a new one.
  • Prevent Account Sharing: By limiting sessions, you can effectively stop users from sharing their login credentials with others.
  • Admin Control: Easily force log out a user from the admin dashboard, giving you full control over active sessions.
  • Developer-Friendly: The plugin is built with a hook-based architecture, making it highly customizable and extensible for developers.

πŸ“¦ Addons

Enhance LoggedIn’s functionality with these simple yet powerful add-ons.

  • Limit Per User: For more granular control, the Limit Per User addon allows you to set specific login limits for individual users, overriding the global settings. This is perfect for offering different tiers of access or special privileges.

  • Real-time Logout: This add-on ensures a truly seamless experience by checking for logouts in real time. When a user’s session is terminated in the background due to a login limit, the add-on will automatically refresh their page, instantly restricting access.

πŸ› Bug Reports

Found a bug? We welcome your bug reports! Please report any issues directly on the Loggedin GitHub repository.

Please note: GitHub is for bug reports and development-related issues only. For support, please use the WordPress.org support forums.

Screenshot

  • Image
    Settings
  • Image
    Manage Sessions

Installazione

  1. Install Loggedin either via the WordPress.org plugin repository or by uploading the files to your server. (See instructions on how to install Loggedin)
  2. Activate the plugin.
  3. Go to Users > Loggedin to configure it.

FAQ

Where can I find the settings for Loggedin?

You can find the plugin settings by navigating to Users > Loggedin in your WordPress admin dashboard.

What are the available login logic options?

Currently, the plugin offers three built-in login logic options:

  • Logout Oldest: When a user reaches the login limit, their oldest active session will be automatically terminated to allow for the new login.
  • Logout All: All other active sessions for the user will be logged out when a new session is started.
  • Block New: The new login attempt will be blocked if the user has already reached the maximum number of active sessions.

Additional logic options can be added using third-party plugins or custom code. For more details, see our documentation here.

How long does a login session last?

The duration of a login session is determined by WordPress’s default settings.

  • If the “Remember Me” box is checked during login, the session will last for 14 days.
  • If the “Remember Me” box is not checked, the session will last for 2 days.

You can customize this duration using the auth_cookie_expiration filter. Here’s an example of how to set the session to one month:

function custom_auth_cookie_expiration( $expire ) {
    return MONTH_IN_SECONDS; // Sets the session to one month
}

add_filter( 'auth_cookie_expiration', 'custom_auth_cookie_expiration' );

What if a user has reached the login limit but doesn’t know which devices are active?

Administrators can forcefully log a user out of all their active sessions from the dashboard.

  1. Find the user’s WordPress ID.
  2. Go to Users > Loggedin in your WordPress admin panel.
  3. Navigate to the Manage Sessions section.
  4. Enter the user ID and click the Force Logout button to end all of their active sessions.

Can I bypass the login limit for specific users or roles?

Yes, you can bypass the limit for certain users or roles by adding a few lines of code to your theme’s functions.php file or a custom plugin.

To bypass specific user IDs, use the following code:

function loggedin_bypass_users( $bypass, $user_id ) {
    // Add the user IDs you want to bypass to this array.
    $allowed_users = array( 1, 2, 3, 4, 5 );
    return in_array( $user_id, $allowed_users );
}

add_filter( 'loggedin_bypass', 'loggedin_bypass_users', 10, 2 );

To bypass specific user roles, use this code:

function loggedin_bypass_roles( $prevent, $user_id ) {
    // Add the roles you want to bypass to this array.
    $allowed_roles = array( 'administrator', 'editor' );
    $user = get_user_by( 'id', $user_id );
    $roles = ! empty( $user->roles ) ? $user->roles : array();
    return ! empty( array_intersect( $roles, $allowed_roles ) );
}

add_filter( 'loggedin_bypass', 'loggedin_bypass_roles', 10, 2 );

Recensioni

Image

Espectacular

promedios 2 Febbraio 2026
Sencillamente prΓ‘ctico y funcional
Image

A must have plugin

frazard99 4 Gennaio 2026
Keep it up!
Image

Love it, works like a charm

DL 26 Settembre 2025
Super cool plugin, lightweight, just works.
Image

Works perfectly for me

zchas42 4 Agosto 2025
Sell eLearning courses, need to prevent login sharing – combined with 2 factor authentication this plugin does the job very nicely.
Image

Excellent

emmauelbright 12 Luglio 2025
I like it
Image

Great plugin

jacseq 3 Giugno 2025
In use by us since at least two years. Simple and works properly.
Leggi tutte le recensioni di 110

Contributi e sviluppo

“Loggedin – Limit Concurrent Sessions” Γ¨ un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori
  • Image Joel James
  • Image Duck Dev

“Loggedin – Limit Concurrent Sessions” Γ¨ stato tradotto in 5 lingue. Grazie a chi traduce per il contributo.

Traduci “Loggedin – Limit Concurrent Sessions” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il codice segui il repository SVN, segui il log delle modifiche tramite RSS.

Changelog

2.0.4 (02/01/2026)

πŸ‘Œ Improvements

  • Review notice check.

πŸ› Bug Fixes

  • Invalid nonce action prevents notices from being dismissed.

2.0.3 (09/12/2025)

πŸ‘Œ Improvements

  • Remove debug code.

2.0.2 (11/11/2025)

πŸ› Bug Fixes

  • Nonce verification for Force Logout.
  • Uninstall cleanup.

2.0.1 (11/11/2025)

πŸ› Bug Fixes

  • Fatal errors.
  • Empty addons page.

2.0.0 (10/11/2025)

πŸ“¦ New

  • Settings page
  • Addons
  • Logout Oldest logic – Thanks #19.

πŸ‘Œ Improvements

  • Coding standards.
  • Sanitization.

1.3.2 (01/10/2024)

πŸ› Bug Fixes

  • Security fixes.

1.3.1 (19/09/2020)

πŸ‘Œ Improvements

  • Support ajax logins – Thanks Carlos Faria.

1.3.0 (28/08/2020)

πŸ‘Œ Improvements

  • Improved “Allow” logic to check only after password check.

1.2.0 (07/06/2019)

πŸ“¦ New

  • Added ability to choose login logic.

1.1.0 (06/06/2019)

πŸ“¦ New

  • Added ability to force logout users.
  • Added cleanup on plugin uninstall.
  • Added review notice.

πŸ‘Œ Improvements

  • Code improvement

1.0.1 (02/07/2016)

πŸ› Bug Fixes

  • Fixing misspelled variable.

1.0.0 (16/06/2016)

πŸ“¦ New

  • Initial version release.

Meta

  • Versione 2.0.4
  • Ultimo aggiornamento 2 mesi fa
  • Installazioni attive 8.000+
  • Versione WordPress 5.0 o superiore
  • Testato fino alla versione 6.9.1
  • Versione PHP 7.4 o superiore
  • Lingue

    Chinese (Taiwan), English (US), German, Russian, Spanish (Mexico), e Swedish.

    Traduci nella tua lingua

  • Tag
    limitloginlogoutsessionsuser login
  • Visualizzazione avanzata

Valutazioni

4.9 su 5 stelle.
  • 105 recensioni a 5-stelle 5 stelle 105
  • 2 recensioni a 4-stelle 4 stelle 2
  • 0 recensioni a 3-stelle 3 stelle 0
  • 2 recensioni a 2-stelle 2 stelle 2
  • 1 1- recensioni a stelle 1 stella 1

Lascia la tua valutazione

Vedi tutte le recensioni

Collaboratori

  • Image Joel James
  • Image Duck Dev

Supporto

Hai qualcosa da dire? Ti serve aiuto?

Chiedi nel forum di supporto

Donazioni

Vuoi sostenere le versioni future?

Fai una donazione per lo sviluppo

  • Chi siamo
  • News
  • Hosting
  • Privacy
  • Vetrina
  • Temi
  • Plugin
  • Pattern
  • Learn (Training)
  • Supporto
  • Sviluppo
  • WordPress.tv β†—
  • Partecipa
  • Eventi
  • Donazioni β†—
  • Five for the Future
  • WordPress.com β†—
  • Matt β†—
  • bbPress β†—
  • BuddyPress β†—
WordPress.org
WordPress.org

Italia

  • Visita il nostro account X (ex Twitter)
  • Visita il nostro account Bluesky
  • Visita il nostro account Mastodon
  • Visita il nostro account Threads
  • Visita la nostra pagina Facebook
  • Visita il nostro account Instagram
  • Visita il nostro account LinkedIn
  • Visita il nostro account TikTok
  • Visita il nostro canale YouTube
  • Visita il nostro account Tumblr
Code is Poetry.
The WordPress® trademark is the intellectual property of the WordPress Foundation.
Advertisement