Jump to content
MakeWebGames

Recommended Posts

Posted

I was just wondering basically i left myself logged on to the game and put my laptop into hibernation and when i came back on i was still logged onto the game and it didnt log me out what could this be to do with and what will correct this

Posted

When you close your laptop, it saves your current laptop stuff, nothing to do with your game. Why would that matter? Setting your session or cookies to a lower time would work?

Posted
When you close your laptop, it saves your current laptop stuff, nothing to do with your game. Why would that matter? Setting your session or cookies to a lower time would work?

Where abouts can i find then session or the cookies

Posted

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.

Posted

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).

  • 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...