Updated default values to reflect the static values previously set

Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
Richard Sbresny 2010-04-29 12:04:50 +10:00 committed by Mark Story
parent c62ae5e48a
commit 5cf08cbe92
2 changed files with 6 additions and 6 deletions

View file

@ -189,8 +189,8 @@
* Valid values: * Valid values:
* *
* 'high' Session timeout in 'Session.timeout' x 10 * 'high' Session timeout in 'Session.timeout' x 10
* 'medium' Session timeout in 'Session.timeout' x 100 * 'medium' Session timeout in 'Session.timeout' x 5040
* 'low' Session timeout in 'Session.timeout' x 300 * 'low' Session timeout in 'Session.timeout' x 2628000
* *
* CakePHP session IDs are also regenerated between requests if * CakePHP session IDs are also regenerated between requests if
* 'Security.level' is set to 'high'. * 'Security.level' is set to 'high'.

View file

@ -201,10 +201,10 @@ class CakeSession extends Object {
} }
switch ($this->security) { switch ($this->security) {
case 'medium': case 'medium':
$this->factor = 100; $this->factor = 5040;
break; break;
case 'low': case 'low':
$this->factor = 300; $this->factor = 2628000;
break; break;
case 'high': case 'high':
default: default:
@ -773,10 +773,10 @@ class CakeSession extends Object {
function __write($id, $data) { function __write($id, $data) {
switch (Configure::read('Security.level')) { switch (Configure::read('Security.level')) {
case 'medium': case 'medium':
$factor = 100; $factor = 5040;
break; break;
case 'low': case 'low':
$factor = 300; $factor = 2628000;
break; break;
case 'high': case 'high':
default: default: