Yii users being logged out after 15-30 minutes despite session timeouts being set to at least 1 day

后端 未结 5 1771
南笙
南笙 2020-12-08 20:41

I\'ve included the relevent parts of our Yii config file below:

return array(
...
    \'components\'=>array(
        \'session\' => array(
                     


        
5条回答
  •  青春惊慌失措
    2020-12-08 21:04

    I had a identical problem, even if i make authTimeout 3600 * 24 ( 24 hours ) the user still making logout in about 30 minutes. I discovered that on php.ini there is a option:

    session.gc_maxlifetime

    for default this options is 24 minutes, so i changed for what i needed

    session.gc_maxlifetime = 86400

    24 hours. Problem Solved for me.

    Hope this could help someone!

提交回复
热议问题