Since I have introduced memcached for sessions users have been being logged out in a short period of time. It seems that the user cookie auto login settings are no longer working. After 24 minutes (I believe) I get logged out and hit the login page even when I have checked remember me.
Here is what I have in my main config:
'user' => array(
// enable cookie-based authentication
'class' => 'WebUser',
'allowAutoLogin' => true,
'autoRenewCookie' => true,
'loginUrl' => array('/user/login'),
'stateKeyPrefix' => 'sso',
'identityCookie' => array("domain" => 'xxx.com')
),
'session' => array(
'class'=> 'CCacheHttpSession',
'cacheID' => 'cache',
'cookieMode' => 'only',
'cookieParams' => array('path' => '/', 'domain' => 'xxx.com')
),
and cache settings are the following:
'cache'=>array
(
'class'=>'CMemCache',
'keyPrefix' => 'key-prefix-',
'useMemcached' => true,
'servers'=>array
(
array
(
'host'=>'myhost',
'port'=>11211
)
)
),
Any suggestions?
Thanks