From 464a7d49ba3f998d2d53843d92c0b4bb5bf88a1c Mon Sep 17 00:00:00 2001
From: Tim Steiner <tsteiner2@unl.edu>
Date: Wed, 30 Jun 2010 21:26:15 +0000
Subject: [PATCH] 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
---
 sites/all/modules/unl/unl_cas.module | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sites/all/modules/unl/unl_cas.module b/sites/all/modules/unl/unl_cas.module
index 8ecc1c6a..e9969efa 100644
--- a/sites/all/modules/unl/unl_cas.module
+++ b/sites/all/modules/unl/unl_cas.module
@@ -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))));
 }
-- 
GitLab