public function Logout(UserSession $user) { Log::Debug('Attempting CAS logout for email: %s', $user->Email); $this->authToDecorate->Logout($user); if ($this->options->CasHandlesLogouts()) { phpCAS::logout(); } }
public function Logout(UserSession $user) { Log::Debug('Attempting CAS logout for email: %s', $user->Email); $this->authToDecorate->Logout($user); if ($this->options->CasHandlesLogouts()) { phpCAS::logoutWithRedirectService('http://' . $_SERVER['SERVER_NAME']); } }