mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Updated default values to reflect the static values previously set
Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
parent
c62ae5e48a
commit
5cf08cbe92
2 changed files with 6 additions and 6 deletions
|
@ -189,8 +189,8 @@
|
|||
* Valid values:
|
||||
*
|
||||
* 'high' Session timeout in 'Session.timeout' x 10
|
||||
* 'medium' Session timeout in 'Session.timeout' x 100
|
||||
* 'low' Session timeout in 'Session.timeout' x 300
|
||||
* 'medium' Session timeout in 'Session.timeout' x 5040
|
||||
* 'low' Session timeout in 'Session.timeout' x 2628000
|
||||
*
|
||||
* CakePHP session IDs are also regenerated between requests if
|
||||
* 'Security.level' is set to 'high'.
|
||||
|
|
|
@ -201,10 +201,10 @@ class CakeSession extends Object {
|
|||
}
|
||||
switch ($this->security) {
|
||||
case 'medium':
|
||||
$this->factor = 100;
|
||||
$this->factor = 5040;
|
||||
break;
|
||||
case 'low':
|
||||
$this->factor = 300;
|
||||
$this->factor = 2628000;
|
||||
break;
|
||||
case 'high':
|
||||
default:
|
||||
|
@ -773,10 +773,10 @@ class CakeSession extends Object {
|
|||
function __write($id, $data) {
|
||||
switch (Configure::read('Security.level')) {
|
||||
case 'medium':
|
||||
$factor = 100;
|
||||
$factor = 5040;
|
||||
break;
|
||||
case 'low':
|
||||
$factor = 300;
|
||||
$factor = 2628000;
|
||||
break;
|
||||
case 'high':
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue