How do I log out users from a restricted page if they are already logged in on another device? [closed]
I would use AJAX to check if the user is logged in. You could use setInterval to check every 30 seconds (or whatever). I tested the following code, and it works. First, create a file in your theme directory called ajax.js and put this code in it: (function ( $ ) { var check_user_is_logged_in = … Read more