[cas-dev] Session expire time in phpCAS
Veli AKÇAKAYA
akcakaya at sabanciuniv.edu
Fri Sep 14 05:36:53 EDT 2007
Hi,
We (Sabanci University) use the phpCAS client with uPortal. Session time
in phpCAS is 3 hours but we want to set this time 8 hours but any isn't
change in php.ini file. now uPortal session time is 8 hours but we can't
set php portlet's in uPortal session time 8 hour. After 3 hours of login
to system although session time isn't finish uportal's session, PHP
portlets's session is finishing and then again it want us to be login
again, show the CAS login screen. Is there any parameter about session
time in phpCAS client, if not; how set the session time? Following
code isn't work.
_Our phpCAS code:_
include_once('CAS/CAS.php');
phpCAS::client(CAS_VERSION_2_0,'login.sabanciuniv.edu',443,'cas');
ini_set("session.gc_maxlifetime", "54000");
session_cache_expire(54000);
$cache_expire = session_cache_expire();
$expireTime = 60*60*8;
session_set_cookie_params($expireTime);
phpCAS::forceAuthentication();
if (isset($_REQUEST['logout'])) {
phpCAS::logout();
}
Thanks...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas-dev/attachments/20070914/96828a28/attachment.html
More information about the cas-dev
mailing list