function cas_server_logout in CAS 5.4
Same name and namespace in other branches
- 5.3 cas_server.module \cas_server_logout()
- 6.3 cas_server.module \cas_server_logout()
- 6.2 cas_server.module \cas_server_logout()
- 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 180 - 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;
}