• Resolved rohitnaikwork

    (@rohitnaikwork)


    My query have 2 parts

    1) I have a wordpress site and I want to limit active users to only 10.
    That means only 10 users can logon at a time.
    If the 11th user wants to login then one of the previous users must logoff.

    2) One user cannot login from two systems on the same network.
    If the user login into 2nd system the previous session should be discarded and should logout the previous session.

    Is this possible to do it in the plugin : user session control?

    If so plz reply to this OR buzz me on rohitnaikwork (at) gmail.com

    https://www.ads-software.com/plugins/user-session-control/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Frankie Jarrett

    (@fjarrett)

    Hi thanks for using my plugin.

    1) This will require some custom development on your part. This plugin does not enforce any kind of limitations on who can login or how many people can login. It simply provides visibility for the admin to manually control sessions.

    Personally, I think it’s generally unwise to prevent people who have valid credentials from being able to login. But there’s a unique use-case for anything I guess ??

    2) I wrote another plugin called Prevent Concurrent Logins which does exactly what you described. The most recent session is always honored and previous sessions are destroyed. You may find it useful.

    Thanks!

    Thread Starter rohitnaikwork

    (@rohitnaikwork)

    Frankie Jarrett, awesome work in creating these plugins

    I have been using both of these plugins, that is Prevent Concurrent Logins to get unique visitors and User session control to destroy sessions more than 10.

    I have used this code and working fine but the only issue is that you need to go manually in the plugin of user session control and run it manually.

    Is there any way you can automate this process of running the code when the user logs in ?

    `
    $custom_count=sizeof($custom_userid);

    if($custom_count>10 ){
    for( $x=10; $x<$custom_count; $x++) {
    usc_destroy_user_session( $custom_userid[$x], $custom_tokenhash[$x] );
    }
    }
    else{

    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Limit my site only to 10 active unique users’ is closed to new replies.