我使用 PHP CAS,但是当我想注销时,由于无限重定向循环而失败 include_once('CAS.php');
include_once('dbconnect.php');
phpCAS::client(CAS_VERSION_2_0,'login.mydomain.com',443,'', false);
phpCAS::setDebug('/tmp/phpCAS.log');
phpCAS::setNoCasServerValidation();
phpCAS::forceAuthentication();
if(isset($_REQUEST['logout']))
{
if (!isset($_SESSION)) {
if (!isset($_SESSION)) {
session_start();
}
}
session_destroy() ;
phpCAS::logout();
}
$casUser = phpCAS::getUser();