Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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;
 }