Hello, after logged in code in PHP I have this:
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
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