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 getExtendedToken() { $token = Session::Exists('current_ext_token') ? Session::Get('current_ext_token') : Token::Generate(TRUE); Session::Add('current_ext_token', $token); $this->template->assign('extended_token', $token); return $token; }