aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-16 06:24:41 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-16 06:24:41 -0700
commit059e090b53643cb07a2634b700ada5cf3b6894e8 (patch)
tree0885c33ceb58ebcd0e713eb656484c294efab112 /include/auth.php
parent56a37deb7399075e35e4a174d609c9e8424095db (diff)
downloadvolse-hubzilla-059e090b53643cb07a2634b700ada5cf3b6894e8.tar.gz
volse-hubzilla-059e090b53643cb07a2634b700ada5cf3b6894e8.tar.bz2
volse-hubzilla-059e090b53643cb07a2634b700ada5cf3b6894e8.zip
sorting out visitor sessions
Diffstat (limited to 'include/auth.php')
-rw-r--r--include/auth.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/auth.php b/include/auth.php
index 5e454745e..387cab0af 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -7,6 +7,7 @@ if((x($_SESSION,'authenticated')) && (! ($_POST['auth-params'] == 'login'))) {
unset($_SESSION['authenticated']);
unset($_SESSION['uid']);
unset($_SESSION['visitor_id']);
+ unset($_SESSION['is_visitor']);
unset($_SESSION['administrator']);
unset($_SESSION['cid']);
$_SESSION['sysmsg'] = "Logged out." . EOL;
@@ -34,6 +35,7 @@ else {
unset($_SESSION['authenticated']);
unset($_SESSION['uid']);
unset($_SESSION['visitor_id']);
+ unset($_SESSION['is_visitor']);
unset($_SESSION['administrator']);
unset($_SESSION['cid']);
$encrypted = hash('whirlpool',trim($_POST['password']));