summaryrefslogtreecommitdiff
path: root/includes/loggedin.php
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2011-08-21 02:07:40 +0200
committerMichael Tänzer <neo@nhng.de>2011-08-21 02:07:40 +0200
commitce4bfbaf0c2babb5bba2568d3b8712e1615aa651 (patch)
treebcdd82ada2066eff6fc21f6dfc2fe01844f1550f /includes/loggedin.php
parent983a7dced2bc15cfb5760b81659bc72fb39b2567 (diff)
downloadcacert-ce4bfbaf0c2babb5bba2568d3b8712e1615aa651.tar.gz
cacert-ce4bfbaf0c2babb5bba2568d3b8712e1615aa651.tar.xz
cacert-ce4bfbaf0c2babb5bba2568d3b8712e1615aa651.zip
Source code taken from cacert-20110820.tar.bz2
Diffstat (limited to 'includes/loggedin.php')
-rw-r--r--includes/loggedin.php3
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;