我使用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();