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:
*
* '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'.

View file

@ -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: