The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
Limiting the number of same user simultaneous sessions
#10
Sorry. It took me a second. Try this in usersc/scripts/custom_login_script.php
$sessions = fetchUserSessions();
if($sessions){
$count = count($sessions);
if($count > 1){
$sessions = array_reverse($sessions);
foreach($sessions as $k=>$v){
if($k != 0){
killSessions($sessions[$k]);
}
}
}
}
  Reply


Messages In This Thread
Limiting the number of same user simultaneous sessions - by demilson - 04-30-2018, 01:09 AM
RE: Limiting the number of same user simultaneous sessions - by mudmin - 05-06-2019, 08:46 AM
Limiting the number of same user simultaneous sessions - by demilson - 04-30-2018, 11:23 AM
Limiting the number of same user simultaneous sessions - by demilson - 05-11-2018, 01:37 PM
Limiting the number of same user simultaneous sessions - by demilson - 05-13-2018, 05:21 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)