From: Friendika Date: Tue, 16 Nov 2010 00:55:11 +0000 (-0800) Subject: prevent redirect loop if an account is manually removed while logged in X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c2b4791af02f0d545089383a705d6b7ca790c0dc;p=friendica.git prevent redirect loop if an account is manually removed while logged in --- diff --git a/include/auth.php b/include/auth.php index ccaa970de1..5d7ac436b1 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()); }