HITMAN 17 Posted October 26, 2011 Share Posted October 26, 2011 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 Quote Link to comment Share on other sites More sharing options...
gurpreet Posted October 26, 2011 Share Posted October 26, 2011 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? Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted October 26, 2011 Author Share Posted October 26, 2011 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 Quote Link to comment Share on other sites More sharing options...
gurpreet Posted October 26, 2011 Share Posted October 26, 2011 In your login it will create a session. Not sure where the definition of the cookies and session is but just look around your global files and header etc. Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted October 29, 2011 Author Share Posted October 29, 2011 do you have an example of what it will be like? Quote Link to comment Share on other sites More sharing options...
gurpreet Posted October 29, 2011 Share Posted October 29, 2011 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. Quote Link to comment Share on other sites More sharing options...
Dominion Posted October 29, 2011 Share Posted October 29, 2011 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). Quote Link to comment Share on other sites More sharing options...
sniko Posted November 7, 2011 Share Posted November 7, 2011 Maybe view this site for a guide on how to. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.