public function logout() { if (phpCAS::isSessionAuthenticated()) { if ($this->auth->check()) { $this->auth->logout(); } Session::flush(); phpCAS::logout(); exit; } }
/** * This method is used to logout from CAS * * @param string $service a URL that will be transmitted to the CAS server to do a redirect after logout * * @return none */ public function logout($service = "") { if (phpCAS::isSessionAuthenticated()) { if ($this->auth->check()) { $this->auth->logout(); } $this->session->flush(); if ($service != "") { phpCAS::logoutWithRedirectService($service); } else { phpCAS::logout(); } exit; } }
/** * Log out the user. * * @return \Response */ public function destroy() { $this->auth->logout(); return redirect('/'); }
/** * @return mixed */ public function logout() { return $this->auth->logout(); }
/** * Log the user out * * @return mixed */ public function getLogout() { $this->auth->logout(); return View::make('auth.logout'); }
/** * Handle the command. * * @param $command */ public function handle($command) { return $this->authenticate->logout(); }
/** * Logout user * * @return mixed */ public function getLogout() { $this->auth->logout(); return $this->redirectRoute('admin.auth.get_login')->with('success_message', $this->trans->get('messages.auth.success_logout')); }
public function logout() { $this->auth->logout(); return $this->redirector->back(); }
/** * Log out the current user. * * @return void */ public function logout() { $this->auth->logout(); }