Dear Master.

Please Your Help.

I am using phpCAS Client 1.3.3 with simple authentication to CAS server 
with LDAP backend.

and i have successfull authentication and get return ticket / session id 
variabel. ex: "ST-404-sKkVIrpxuedp52YOtjGs-caspoliupgacid"

my problem is, i want to use the ticket / session id variabel as global 
session variabel and use the session for build other page in my application.

I do not know what the cause why in other pages session is not readable. 

plese your help.

Thank you.



My "index.php" Code : 
_________________________________________________________________________
// Load the settings from the central config file
require_once 'config.php';

// Load the CAS lib
require_once $phpcas_path . 'CAS.php';

// Enable debugging
phpCAS::setDebug();

// Initialize phpCAS
phpCAS::client(CAS_VERSION_2_0, 'cas.poliupg.ac.id', 8443, $cas_context);

phpCAS::handleLogoutRequests(true, "cas.poliupg.ac.id");  

phpCAS::setNoCasServerValidation();

// force CAS authentication

phpCAS::forceAuthentication();


// logout if desired
if (isset($_REQUEST['logout'])) {
session_destroy();
phpCAS::logout();
}

// for this test, simply print that the authentication was successfull

$_SESSION['id'] = session_id();
$_SESSION['username'] = phpCAS::getUser();
$_SESSION['name'] = session_name();
$_SESSION['version'] = phpCAS::getVersion();
_________________________________________________________________________







-- 
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

Reply via email to