CakePHP - session timeout

前端 未结 3 694
北荒
北荒 2021-01-11 18:54

I use in core.php for logout after 30 minutes this:

Configure::write(\'Session\', array(
    \'defaults\' => \'php\',
    \'timeout\' => 30,                    


        
3条回答
  •  有刺的猬
    2021-01-11 19:54

    for that you can write like that

    Configure::write('Session.timeout', '120');

    Configure::write('Security.level', 'medium');

    if 'high' then Session timeout in 'Session.timeout' x 10,

    if 'medium' then Session timeout in 'Session.timeout' x 100,

    if 'low' Session timeout in 'Session.timeout' x 300

提交回复
热议问题