如何增加cakephp 2的登录时间

时间:2017-04-24 08:56:13

标签: php cakephp cakephp-2.0 cakephp-2.3 cakephp-2.1

您能告诉我如何增加CakePHP 2的会话到期时间吗?

目前,我将配置设置为以下。

Configure::write('Session', array(
        'defaults' => 'php',
                'timeout' => 129600, // The session will timeout after 30 minutes of inactivity
                'cookieTimeout' => 129600, // The session cookie will live for at most 24 hours, this does not effect session timeouts
                'ini' => array(
                   'session.gc_maxlifetime' => 129600 // 36 hours
                 )
    ));

但是,这些设置不起作用,会话在将近24分钟内到期。谢谢 这个帖子没有解决我的问题“How to increase cakephp Auth component session expire time

1 个答案:

答案 0 :(得分:0)

在应用程序的core.php文件中添加此配置

"sun.security.validator.ValidatorException: PKIX path building failed: 

sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to 

requested target " 

根据您的要求添加时间