Support » Plugin: WP Bouncer - Limit Simultaneous Logins » Не блокирует параллельный вход в систему

  • До меня уже писал

    joefoe 02.02.2018
    love the concept behind this plugin, but it doesn’t seem to do what I expected it to do judging by the description, which is to remove one user from accessing a page when the another is accessing it. I’m using Woo and Groups plugins to restrict access to content pages. With this plugin, both users are able to access the page and everything on it at the same time (downloads, movies, discussions). The “bouncing” action seems to only occur when trying to access my-account, but the rest of the site seems untouched. So it kind of works on WP 4.9.2 I guess… but not in the way I hoped. It might be due to my membership setup… it’s not exactly vanilla. I Googled and found a few lines of code for functions.php that only allow one user to be logged in per account… very simple and ultralight, and it instantly logs out the other user when a new user logs on. No real need for a plugin.

    У меня ситуация полностью идентичная, я ожидал, что плагин заблокирует вход в учётную запись со второго устройства. По факту же он не блокирует параллельного входа и купив одну учётную запись, группа людей сможет ею пользоваться и получать доступ к материалам с платным доступом.

    К плагину описание вводящее в заблуждение.

    Если кто-то знает как решить проблему таким же путём как это сделал автор цитируемого мною комментария – отзвитесь.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi
    Can you share the code you found on Google for function.php that can do the job?

    thank you

    Thread Starter mosotws

    (@mosotws)

    function only_one_login() {
        $token = wp_get_session_token();
        if ( $token ) {
            $manager = WP_Session_Tokens::get_instance( get_current_user_id() );
            $manager->destroy_others( $token );
        }
    }
    add_action('init', 'only_one_login');
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Не блокирует параллельный вход в систему’ is closed to new replies.