05-11-2018, 01:37 PM
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
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