Skip to content
Snippets Groups Projects
Commit 464a7d49 authored by Tim Steiner's avatar Tim Steiner
Browse files

Make sure users are always logged out when they click the logout button (when using UNL CAS)

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@120 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 92766d77
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,7 @@ function unl_cas_form_alter(&$form, $form_state, $form_id)
function unl_cas_user_logout($account)
{
session_destroy();
$cas = unl_cas_get_adapter();
drupal_goto($cas->getLogoutUrl(url('<front>', array('absolute' => TRUE))));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment