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
#5
I can give you some code to test off the top of your head that shouldn't break anything. Go into your users table and add a column called session (varchar 255).

Go to usersc/scripts/just_after_login.php and put this...
Code:
$session = Token::generate();
Code:
session_id($session);
Code:
$db->update('users',$user->data()->id,['session'=>$session]);

Then in usersc/includes/head_tags.php put

Code:
if($users->data()->session != $_SESSION['token']){
Code:
Redirect::to('http://mydomain.com/users/logout.php');
Code:
}

Give that a whirl and see what happens.


  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: 3 Guest(s)