我需要增加项目中登录用户的会话时间。这是core.php中的会话信息:
Configure::write('Session', array(
'defaults' => 'php',
'cookieTimeout' => 1440,
'autoRegenerate' => true,
'cookie' => 'SYNAPARTY'
));
生成一个24小时过期的cookie。问题是用户在一段时间不活动后会注销。我怎么解决这个问题?
试试改成:
Configure::write('Session', array(
'defaults' => 'php',
'cookieTimeout' => 1440,
'timeout' => 1440 //Or whatever amount of minutes you want
'autoRegenerate' => true,
'cookie' => 'SYNAPARTY'
));