Fixed possible session corruption in swekey authentication

This commit is contained in:
Herman van Rink
2011-06-29 08:51:44 +02:00
parent 6eae88e65f
commit 6e6e129f26
2 changed files with 5 additions and 3 deletions

View File

@@ -263,11 +263,10 @@ function Swekey_login($input_name, $input_go)
}
}
if (strstr($_SERVER['QUERY_STRING'],'session_to_unset') != false)
if (!empty($_GET['session_to_unset']))
{
parse_str($_SERVER['QUERY_STRING']);
session_write_close();
session_id($session_to_unset);
session_id($_GET['session_to_unset']);
session_start();
$_SESSION = array();
session_write_close();