function logout($user)
 {
     $this->initializeCASClient();
     // Force CAS logout if required
     if (phpCAS::isAuthenticated()) {
         phpCAS::logout();
     }
     return parent::logout();
 }
 /**
  * Log a user out.
  *
  * Just a shim to call the logut() method on the bound authentication object.
  *
  * @return string AuthComponent::$logoutRedirect
  * @see AuthComponent::$logoutRedirect
  * @link http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#logging-users-out
  */
 public function logout()
 {
     $user = $this->user();
     $result = $this->authenticateObject->logout($user);
     return $result;
 }