Hi all ,
We have a CAS Server and 2 web applications CASified, one in Java(JA-SIG
client) and the other in PHP (phpCAS)
The problem is when we do a logout from Java web applications, CAS Server
sends the logout request but the PHP web applications does not intercept the
logout request and it remains logged.
Our PHP page is :
<?php
//
// phpCAS simple client
//
// import phpCAS lib
include_once('../../CAS.php');
phpCAS::setDebug('salida.log');
// initialize phpCAS
phpCAS::client(CAS_VERSION_2_0,'dominio.es',443,'/cas');
// no SSL validation for the CAS server
phpCAS::setNoCasServerValidation();
phpCAS::handleLogoutRequests(true,
array($_SERVER['SERVER_NAME'],'dominio.es'));
// force CAS authentication
phpCAS::forceAuthentication();
// at this step, the user has been authenticated by the CAS server
// and the user's login name can be read with phpCAS::getUser().
// logout if desired
if (isset($_REQUEST['logout'])) {
phpCAS::logout();
}
// for this test, simply print that the authentication was successfull
?>
<html>
.........
</html>
Thanks in advance
--
View this message in context:
http://www.nabble.com/phpCAS-handleLogoutRequests-not-working-tp25383889p25383889.html
Sent from the CAS Users mailing list archive at Nabble.com.
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user