લખાણ પર જાઓ
  • પ્રવેશ કરો
  • રજિસ્ટર
WordPress.org

ગુજરાતી

  • થીમ્સ
  • પ્લગિન્સ
  • News
  • વિશે
  • ગુજરાતી ટીમ
  • કાર્યક્રમ
  • મીટઅપ્સ
  • Get WordPress
Get WordPress

પ્લગિન

  • મારા મનપસંદ
  • બીટા પરીક્ષણ
  • ડેવલપર્સ
ડાઉનલોડ

Loggedin – Limit Active Logins

Joel James દ્વારા
  • વિગતો
  • સમીક્ષાઓ
  • સ્થાપન
  • ડેવલપમેન્ટ
સપોર્ટ

વર્ણન

By default in WordPress users can login using one account from unlimited devices/browsers at a time. This is not good for everyone, seriously! With this plugin you can easily set a limit for no. of active logins a user can have.

Loggedin 🔒 Features and Advantages

  • Set maximum no. of active logins for a user.
  • Block new logins when the login limit is reached.
  • Allow new logins while logging out from other devices when the limit is reached.
  • Force logout users from admin.
  • Prevent users from sharing their account.
  • Useful for membership sites (for others too).
  • No complex settings. Just one optional field to set the limit.
  • Super Light weight.
  • Filter to bypass login limit for certain users or roles.
  • Completely free to use with lifetime updates.
  • Follows best WordPress coding standards.

Installation | Support | Screenshots

Please contribute to the plugin development in GitHub.

🔐 Important Notice

Even if the user is closing the browser without logging out, their login session exists for period of time. So this will also considered as an active login.

🐛 Bug Reports

Bug reports are always welcome – report here.

સ્ક્રીનશોટ

  • Settings - Set maximum no. of active logins for a user account.

સ્થાપન

Installing the plugin – Simple

  1. In your WordPress admin panel, go to Plugins > New Plugin, search for LoggedIn and click “Install now“
  2. Alternatively, download the plugin and upload the contents of loggedin.zip to your plugins directory, which usually is /wp-content/plugins/.
  3. Activate the plugin
  4. Go to General tab under WordPress Settings menu.
  5. Find the “Maximum Active Logins” option and select the maximum number of active logins for a user account.

Missing something?

If you would like to have an additional feature for this plugin, let me know

એફએક્યુ (FAQ)

How can I set the limit, and where? 🤔

This plugin does not have a seperate settings page. But we have one configural settings to let you set the login limit.

  1. Go to Settings page in admin dashboard.
  2. Scroll down to see the section 🔐 Loggedin.
  3. Set the maximum number of active logins a user can have in Maximum Active Logins option.

Can I somehow allow new logins when the limit is reached? 🤔

You can forcefully logout the user from other devices and allow new login.

  1. Go to Settings page in admin dashboard.
  2. Scroll down to see the section 🔐 Loggedin.
  3. Select the Login Logic as Allow.

Can I block the new logins when the limit is reached? 🤔

You block the new logins when the user is logged in from maximum no. of devices according to the limit you set.

  1. Go to Settings page in admin dashboard.
  2. Scroll down to see the section 🔐 Loggedin.
  3. Select the Login Logic as Block.
  4. Now user will have to wait for the other login sessions to expire before login from new device.

How long a login session exist? How long the user needs to wait for new login? 🤔

That depends. If the “Remember Me” box is checked while login, WordPress will keep the user logged in for 14 days by default. If “Remember Me” is not checked, 2 days will be the active login session time.

You can change that period using, auth_cookie_expiration filter.

function loggedin_auth_cookie_expiration( $expire ) {
    // Allow for a month.
    return MONTH_IN_SECONDS;
}

add_filter( 'auth_cookie_expiration', 'loggedin_auth_cookie_expiration' );

How can I forcefully logout a user from all devices? 🤔

You can forcefully logout a user from all the devices he has logged into. Get his WordPress user ID and,

  1. Go to Settings page in admin dashboard.
  2. Scroll down to see the section 🔐 Loggedin.
  3. Enter user ID of the user you would like to logout.
  4. Click Force Logout.

Can I bypass this limit for certain users or roles? 🤔

Yes, of course. But this time you are going to add few lines of code. Don’t worry. Just copy+paste this code in your theme’s functions.php file or in custom plugin:

function loggedin_bypass_users( $bypass, $user_id ) {
    // Enter the user IDs to bypass.
    $allowed_users = array( 1, 2, 3, 4, 5 );

    return in_array( $user_id, $allowed_users );
}

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

Or if you want to bypass this for certain roles:

function loggedin_bypass_roles( $prevent, $user_id ) {
    // Array of roles to bypass.
    $allowed_roles = array( 'administrator', 'editor' );

    $user = get_user_by( 'id', $user_id );

    $roles = ! empty( $user->roles ) ? $user->roles : array();

    $bypassed = array_intersect( $roles, $allowed_roles );

    return ! empty( $bypassed );
}

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

સમીક્ષાઓ

Works like a charm!!

catanuba24 સપ્ટેમ્બર 30, 2023
I got locked out at first because I didn't understand that it would affect the admin. I was using a different computer and the other one stayed logged in. Simple fix, created another admin account.

very lightweight

mrshabanali ઓગસ્ટ 27, 2023
A very lightweight and minimal plugin.

Excellent Plugin

aflouss ઓગસ્ટ 10, 2023
Too Mach help

it blocked myself from my own site, please help!

josu88 ઓગસ્ટ 4, 2023 1 reply
Hi, maybe was some incompatibility with other plugin, but it kick me out from my own site and now i cant enter, please help how can i fix this situation? there is no open sessions but the plugin understands like there are 2 opeeed sessions somewhere

Excellent plugin!!!

datasador જુલાઇ 21, 2023
Excellent plugin!!!

Simple and effictive

fifthmay મે 24, 2023
Simple and effective plug in - 5 stars!
93 સમીક્ષાઓ વાંચો

ફાળો આપનાર & ડેવલપર્સ

આ ઓપન સોર્સ સોફ્ટવેર છે. નીચેના લોકો એ આ પ્લગિન માટે ફાળો આપ્યો છે.

ફાળો આપનારા
  • Joel James
  • Duck Dev

“Loggedin – Limit Active Logins” નું 5 ભાષામાં અનુવાદ કરવામાં આવ્યું છે. Thank you to the translators for their contributions.

“Loggedin – Limit Active Logins” ને તમારી ભાષામાં અનુવાદ કરો.

વિકાસમાં રસ ધરાવો છો?

કોડ બ્રાઉઝ કરો, એસવીએન રીપોઝીટરીમાંથી ચેકઆઉટ કરો, અથવા આરએસએસ દ્વારા ડેવલપમેન્ટ લોગમાં સબ્સ્ક્રાઇબ કરો.

ચેન્જલૉગ

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.

મેટા

  • આવૃત્તિ: 1.3.1
  • છેલ્લે સુધારો: 11 મહિના પહેલા
  • સક્રિય સ્થાપનો: 9,000+
  • વર્ડપ્રેસ આવૃત્તિ: 4.0 or higher
  • 6.1.3 સુધી પરીક્ષણ કર્યું છે
  • PHP આવૃત્તિ: 5.6 or higher
  • ભાષાઓ:

    Chinese (Taiwan), English (US), German, Russian, Spanish (Mexico) અને Swedish.

    તમારી ભાષામાં અનુવાદ કરો

  • ટૅગ્સ:
    active loginsloggedinloginlogout
  • વિગતવાર દૃશ્ય

પૉઇન્ટ્સ

બધુ જુઓ
  • 5 સ્ટાર 88
  • 4 સ્ટાર 1
  • 3 સ્ટાર 0
  • 2 સ્ટાર 2
  • 1 સ્ટાર 2
Log in to submit a review.

ફાળો આપનારા

  • Joel James
  • Duck Dev

સપોર્ટ

મુદ્દાઓનું છેલ્લા બે મહિનામાં નિવારણ:

2 માંથી 0

આધાર ફોરમ જુઓ

દાન

શું તમે આ પ્લગિનની પ્રગતિને સમર્થન આપવા માંગો છો?

આ પ્લગિનને દાન કરો

  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Support
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org

ગુજરાતી

  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
  • અમારી YouTube ચેનલની મુલાકાત લો
કોડ કવિતા છે.