Пример #1
0
 /**
  * Log a user out and remove any auto-login cookies.
  *
  * @param   boolean  completely destroy the session
  * @return  boolean
  */
 public function logout($destroy)
 {
     if (cookie::get('authautologin')) {
         // Delete the autologin cookie to prevent re-login
         cookie::delete('authautologin');
     }
     return parent::logout($destroy);
 }
Пример #2
0
 /**
  * Log a user out and remove any auto-login cookies.
  *
  * @param   boolean  completely destroy the session
  * @return  boolean
  */
 public function logout($destroy)
 {
     if (cookie::get('authautologin')) {
         // Delete the autologin cookie to prevent re-login
         cookie::delete('authautologin');
     }
     if (session::get('riverid')) {
         // Delete the riverid object in case it's set
         session::delete('riverid');
     }
     return parent::logout($destroy);
 }
Пример #3
0
 /**
  * Log a owner out and remove any auto-login cookies.
  *
  * @param   boolean  completely destroy the session
  * @return  boolean
  */
 public function logout($destroy)
 {
     if ($token = cookie::get('authautologin')) {
         // Delete the autologin cookie to prevent re-login
         cookie::delete('authautologin');
         // Clear the autologin token from the database
         $token = ORM::factory('owner_token', $token);
         if ($token->loaded) {
             $token->delete();
         }
     }
     return parent::logout($destroy);
 }