× 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
#4
Dear Brandin,

I just upgraded to the most recent version: 4.3.23 . Everything went well during the updated process.

Now, I'm back thinking how to limit the user's logged session number to just 1.

I just found the custom_login_script.php and seems to be a good place to put something like this:

$db->query("UPDATE us_user_sessions SET UserSessionEnded=1,UserSessionEnded_Time=NOW() WHERE UserSessionEnded=0 AND kUserSessionID <> ?",[$_SESSION['kUserSessionID']]);

What do you think?

Thank you!

Demilson
  Reply


Messages In This Thread
Limiting the number of same user simultaneous sessions - by demilson - 04-30-2018, 01:09 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: 1 Guest(s)