2
我安装在我的CakePHP会话超时会很长,由于业务需要,我将其配置在core.php中是这样的:会话超时差异
Configure::write('Session', array(
'defaults' => 'php',
'timeout' => 4320, //minutes
'cookieTimeout' => 1440, // The session cookie will live for at most 24 hours, this does not effect session timeouts
'checkAgent' => false,
'autoRegenerate' => true, // causes the session expiration time to reset on each page load
'ini' => array(
'session.gc_maxlifetime' => 259200 // 3 day seconds
)
));
我使本地服务器上,并在生产服务器一些测试,我看到一些不同之处:
本地开发环境(PC)
1小时:全成(会话未闭)
2小时:全成(会话未闭)
4小时:succesfull(会话未闭)
生产服务器
1小时:全成(会话未闭)
2小时:不成功(会话关闭)
我需要能够在pr上有大的超时(最少4个小时) oduction服务器,为什么我有本地PC和服务器之间的区别?
我遇到同样的问题。你有没有找到解决方案呢? – Leah
还没有,仍然在寻找解决方案。 – Vito
哦,我明白了。我现在也一直在尝试不同的事情,现在也不好。如果您找到任何解决方案,请让我知道。我会让你知道的。谢谢! – Leah