• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

PHP Sessions wont close

kablaff

Member
Joined
Jan 31, 2012
Messages
126
Reaction score
5
Location
Sweden
Hello, after logged in code in PHP I have this:

Code:
						echo 'Logged in! What do you want to do?<br><br><a href="loggedinacc.php">Create character</a>';	
						if(isset($_SESSION['accountName'])) {
							  session_destroy();
						}
							session_start();
							session_set_cookie_params('300'); // 5 minutes.
							session_regenerate_id(true); 
							$_SESSION['accountName'] = $accountName;

The problem is, after 5 minutes, sesions doesn't dissapear (I have the same code in accountcreate.php).
All other files contains only session_start() -- to be able to find the accname variable, in case you're logged in.

Thanks for help xd
 
Back
Top