I'm creating a login/logout system with PHP, where clients are able decide to use 'remember me' button or not. and in my login.php file, I check to see if they want to be remembered like this:
if(isset($_POST["remember_me"])){
$_SESSION["remember_me"] = true;
}
hence, when i want to set gc_maxlifetime, I need to know that the client should be remembered or not. But as we know, gc_maxlifetime should be set before the session_start() and I can't access the
$_SESSION["remember_me"]
variable. What should I do? Is there any other way to tell server since when a certain session should be subject of garbage collector?
thanks in advance.