The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Avoid Multiple Login
#4
If you record a user's session in the database on login, each time a user loads a page from any location you can check if the current session matches the one in the database. Since each login from other browsers or devices will create a new session ID each time, the most recent login will be the one recorded in the database and all other logins will basically be expired. In your check, if the sessions don't match you can log them out and redirect them to login (perhaps with a message that they have since logged in elsewhere).
  Reply


Messages In This Thread
Avoid Multiple Login - by vincmeister - 08-23-2017, 09:33 PM
Avoid Multiple Login - by mudmin - 08-24-2017, 09:57 AM
Avoid Multiple Login - by vincmeister - 08-24-2017, 10:51 AM
Avoid Multiple Login - by karsen - 08-24-2017, 05:47 PM
Avoid Multiple Login - by mudmin - 08-24-2017, 10:45 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)