diff options
author | Bernhard Fröhlich <bernhard@cacert.org> | 2011-07-27 00:01:29 +0200 |
---|---|---|
committer | Bernhard Fröhlich <bernhard@cacert.org> | 2011-07-27 00:01:29 +0200 |
commit | 9c647d1e5a1d363c5b7ea98fddc843dfc2529cc7 (patch) | |
tree | a0c6564ec8a485594f3238cb62a3bc163654009d | |
parent | 18e174650de0aecc446d51eec3e0801e3edefcad (diff) | |
download | cacert-devel-bug-963.tar.gz cacert-devel-bug-963.tar.xz cacert-devel-bug-963.zip |
Fixed session cleanup, see remarks on http://php.net/manual/de/function.session-unregister.phpbug-963
-rw-r--r-- | includes/loggedin.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/loggedin.php b/includes/loggedin.php index 355527f..640bc6c 100644 --- a/includes/loggedin.php +++ b/includes/loggedin.php @@ -131,13 +131,12 @@ $normalhost=$_SESSION['_config']['normalhostname']; $_SESSION['profile']['loggedin'] = 0; $_SESSION['profile'] = ""; - foreach($_SESSION as $key) + foreach($_SESSION as $key => $value) { unset($_SESSION[$key]); unset($$key); session_unregister($key); } - unset($_SESSION); header("location: https://".$normalhost."/index.php"); exit; |