From 4c5920d5e37cf153e09afacb5118a5f488e85f73 Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Fri, 30 Apr 2010 18:27:05 +0000 Subject: [PATCH] Prevent the CAS module from regenerating the session id on each request. git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@68 20a16fea-79d4-4915-8869-1ea9d5ebf173 --- sites/all/modules/unl/unl_cas.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sites/all/modules/unl/unl_cas.module b/sites/all/modules/unl/unl_cas.module index 0fcfc789..0a0a5723 100644 --- a/sites/all/modules/unl/unl_cas.module +++ b/sites/all/modules/unl/unl_cas.module @@ -18,8 +18,10 @@ function unl_cas_init() if (!$user) { $user = unl_cas_import_user($username); } - $GLOBALS['user'] = $user; - user_login_finalize(); + if ($GLOBALS['user']->uid != $user->uid) { + $GLOBALS['user'] = $user; + user_login_finalize(); + } } } } -- GitLab