From 4728f31c49485df775f7b739146fa18bafbbffcc Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Mon, 12 Apr 2010 17:05:15 +0000 Subject: [PATCH] Check for the unl_sso cookie to be set before doing a gateway CAS auth. --- library/App/Controller/Action.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/App/Controller/Action.php b/library/App/Controller/Action.php index 19706f2c..9769fde7 100644 --- a/library/App/Controller/Action.php +++ b/library/App/Controller/Action.php @@ -20,6 +20,10 @@ class App_Controller_Action extends Unl_Controller_Action { $session = new Zend_Session_Namespace(__CLASS__); + if (!array_key_exists('unl_sso', $_COOKIE)) { + return; + } + // The auth module is doing its thing (probably an active login or logout). Let it be. if (get_class($this) == 'Auth_IndexController') { return; -- GitLab