diff options
author | Friendika <info@friendika.com> | 2010-11-15 16:55:11 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-11-15 16:55:11 -0800 |
commit | c2b4791af02f0d545089383a705d6b7ca790c0dc (patch) | |
tree | 22bec2b614c0e65e0dbe0b573e35f231874cc492 | |
parent | 9be5a7c750e2634a37529945ced226e0cb06c274 (diff) | |
download | volse-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
-rw-r--r-- | include/auth.php | 2 |
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()); } |