aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-15 16:55:11 -0800
committerFriendika <info@friendika.com>2010-11-15 16:55:11 -0800
commitc2b4791af02f0d545089383a705d6b7ca790c0dc (patch)
tree22bec2b614c0e65e0dbe0b573e35f231874cc492 /include/auth.php
parent9be5a7c750e2634a37529945ced226e0cb06c274 (diff)
downloadvolse-hubzilla-c2b4791af02f0d545089383a705d6b7ca790c0dc.tar.gz
volse-hubzilla-c2b4791af02f0d545089383a705d6b7ca790c0dc.tar.bz2
volse-hubzilla-c2b4791af02f0d545089383a705d6b7ca790c0dc.zip
prevent redirect loop if an account is manually removed while logged in
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 ccaa970de..5d7ac436b 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -28,6 +28,8 @@ if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && ((! (x($_POST,'auth-p
);
if(! count($r)) {
+ unset($_SESSION['authenticated']);
+ unset($_SESSION['uid']);
goaway($a->get_baseurl());
}