public function logout() { Session::Add(self::SESSION_LOGGED, FALSE); Session::Remove(self::SESSION_USER_ID); Session::Remove(self::SESSION_USER_EMAIL); Session::Remove(self::SESSION_LOGGED); }
public function acceptExtendedToken($token) { if (Token::AcceptExtended($token)) { Session::Remove('current_ext_token'); return TRUE; } // invalid token... header('HTTP/1.1 401 Unauthorized', TRUE, 401); $this->errorPage('Invalid security token', 'The received token was empty or invalid. <br />Are you sure that <em>Cookies</em> are enabled on your browser?'); return FALSE; }