You are here

function cas_server_logout in CAS 6.2

Same name and namespace in other branches
  1. 5.4 cas_server.module \cas_server_logout()
  2. 5.3 cas_server.module \cas_server_logout()
  3. 6.3 cas_server.module \cas_server_logout()
  4. 7 cas_server.module \cas_server_logout()

Cas Logout @TODO: Implement single sign out support

1 string reference to 'cas_server_logout'
cas_server_menu in ./cas_server.module
Implementation of hook_menu

File

./cas_server.module, line 181
Provides a protocol compliant version of CAS server 2.x

Code

function cas_server_logout() {

  // Destroy the current session:
  session_destroy();
  module_invoke_all('user', 'logout', NULL, $user);
  $output = '<p>You have been logged out successfully</p>';
  if ($_GET['url']) {
    $output .= '<p>' . l('Continue', $_GET['url']) . '</p>';
  }
  return $output;
}