diff --git a/configuration.inc.default b/configuration.inc.default index 2c0c07b..6faffc8 100644 --- a/configuration.inc.default +++ b/configuration.inc.default @@ -126,22 +126,6 @@ if (!defined('STDIN')) { define('CAS','/var/www/libraries/SimpleCAS'); define('CAS_SERVER','cas.somewhere.org'); define('CAS_URI','cas'); -define('CAS_COOKIE','cas_session'); -define('CAS_DOMAIN','.localhost'); -if (session_id()) { - if (!isset($_SESSION['USER']) && isset($_COOKIE[CAS_COOKIE])) { - require_once CAS.'/SimpleCAS/Autoload.php'; - $options = array('hostname'=>CAS_SERVER,'uri'=>CAS_URI); - $protocol = new SimpleCAS_Protocol_Version2($options); - $client = SimpleCAS::client($protocol); - $client->forceAuthentication(); - - if ($client->isAuthenticated()) { - $user = new User($client->getUsername()); - $user->startNewSession(); - } - } -} /** * Load the Zend_Acl diff --git a/html/login/home.php b/html/login/home.php index a52845d..96aef62 100644 --- a/html/login/home.php +++ b/html/login/home.php @@ -20,7 +20,6 @@ if ($client->isAuthenticated()) { try { $user = new User($client->getUsername()); $user->startNewSession(); - setcookie(CAS_COOKIE,'true',0,'/',CAS_DOMAIN); if (isset($_SESSION['return_url'])) { header('Location: '.$_SESSION['return_url']);