Hello all,
I was trying to do a sessiontimeout if a user is idle for 30 minutes.After that he should login again… but this is not working. I am using CHttpSession. However if i give CDbHttpSession this is working fine
this is my code
Not Working
'user' => array(
'class' => 'WebUser',
'loginUrl' => array('site/loginaccount'),
'allowAutoLogin' => true,
),
// uncomment the following to enable URLs in path-format
'session' => array(
'class'=>'CHttpSession',
'timeout'=>$params['session_timeout'],
'autoStart'=>true,
),
Working
'user' => array(
'class' => 'WebUser',
'loginUrl' => array('site/loginaccount'),
'allowAutoLogin' => true,
),
// uncomment the following to enable URLs in path-format
'session' => array(
'class'=>'CDbHttpSession',
'timeout'=>$params['session_timeout'],
'autoStart'=>true,
),
Is there anything else to make this work for CHttpSession ? Due to some reasons i cannot use CDbHttpSession in my web application