Forum Moderators: coopster
I am testing on the iPhone, and read that there is on some mobile devices a special cookie that stores sessions? Is this causing the problem or my code below?
$action = $_GET['action'];
if($action == 'out'){
@session_destroy();
$_SESSION['username'] = "";
}
Thanks in advance.
In order to kill the session altogether, like to log the user out, the session id must also be unset. If a cookie is used to propagate the session id (default behavior), then the session cookie must be deleted. setcookie() may be used for that.