How can i implement a function which allows the user to decide whether he wants the browser to remmeber his login details or not, (similar to the login on kirupa.com-> remember me?)
for now i have
session_cache_expire(30);
session_start();
header("Cache-control: private");
[...]
$_SESSION["user"] = $user;
$_SESSION["pass"] = $this->userdata['pass'];
but this keeps the login details until the user logs out:
unset($this->userdata);
session_destroy();
i want the user to choose whether to want the browser to remmeber his login details the next time the browser is opened… basically some way in which the session details are only stored temporarily until the user is on the site.
thanks.
Matt