logout() public method

Log a user out and remove any autologin cookies.
public logout ( $destroy = FALSE, $logout_all = FALSE ) : boolean
return boolean
Exemplo n.º 1
0
 public function logout($destroy = FALSE, $logout_all = FALSE)
 {
     $settings = Kohana_Config::instance()->load("mmdb");
     if (empty($settings->localMachine)) {
         $user = $this->get_user();
         if (!empty($user->kids_id)) {
             setcookie("kidsessionid", null, -1, "/", ".nationalgeographic.com");
         }
     }
     parent::logout($destroy, $logout_all);
 }