Jump to content
MakeWebGames

Not logged me out


HITMAN 17

Recommended Posts

Well for destroying a session to force a log out will be in your force_user_logout function. Here it is in your globals file:

if($ir['force_logout'])
{
$db->query("UPDATE users SET force_logout=0 WHERE userid=$userid");
session_unset();
session_destroy();
header("Location: login.php");
exit;
}

 

Not sure what you want here, but you can work with that.

Link to comment
Share on other sites

Sessions timeout after a set amount of time in PHP anyway. The chances are your laptop went into hibernation saving the browser stuff, but you were not gone long enough for the actual session to expire. If you want to change this it's a PHP setting not an in game file (although you can do it via the ini_set() function in a php file).

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...