UserAuth->Logout(); require_once "class/Session.php"; Session::clearData('userData'); $to_logout = $_SERVER['HTTP_REFERER']; $to_logout = strpos($to_logout, BASE_URL.'/logout') === false ? $to_logout : BASE_URL; require_once('class/HTTP.php'); skHTTP::redirect(BASE_URL); } } ?>