Rea*_*lar 5 php cakephp cakephp-1.3 cakephp-2.2
我Security.level在CakePHP 2.2手册中找不到Cake 1.3中配置设置的任何参考.
我也无法在迁移指南中找到对此设置的任何引用.
此设置对Cake 1.3中的会话计时器有很大影响.
安全级别
CakePHP安全级别."Session.timeout"中定义的会话超时时间将根据此处的设置进行相乘.
'high'= x 10'medic'= x 100'low'= x 300'high'和'medium'也启用session.referer_check
config.php在CakePHP 2.x中删除了应用程序中的此设置吗?
它仍然存在于core.php中
/**
* The level of CakePHP security.
*/
Configure::write('Security.level', 'medium');
Run Code Online (Sandbox Code Playgroud)
它没有在2.x中使用.
对此设置的唯一引用是在Security :: inactiveMins中 - 其他任何内容都不会调用它.因此,虽然在2.x中仍然存在此设置的假象,但此设置的意图已被删除,因此它不在2.x文档中.