Exemplo n.º 1
0
 /**
  * Performs user logout.
  * Also clears session variables associated with
  * the users access token.
  * 
  * @return void
  */
 public function logout()
 {
     parent::logout();
     $this->pixie->session->remove($this->access_token_key);
     $this->pixie->session->remove($this->token_expires_key);
 }
Exemplo n.º 2
0
 /**
  * Logs the user out
  *
  */
 public function logout()
 {
     if ($this->pixie->cookie->get('login_token', null)) {
         $this->pixie->cookie->remove('login_token');
     }
     return parent::logout();
 }