From 5cf08cbe922e8192750a26b1ec515603ca5367db Mon Sep 17 00:00:00 2001 From: Richard Sbresny Date: Thu, 29 Apr 2010 12:04:50 +1000 Subject: [PATCH] Updated default values to reflect the static values previously set Signed-off-by: Mark Story --- app/config/core.php | 4 ++-- cake/libs/cake_session.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/config/core.php b/app/config/core.php index 935863f93a3..18e24cb3881 100644 --- a/app/config/core.php +++ b/app/config/core.php @@ -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'. diff --git a/cake/libs/cake_session.php b/cake/libs/cake_session.php index 453349acd7f..e43bed944ca 100644 --- a/cake/libs/cake_session.php +++ b/cake/libs/cake_session.php @@ -201,10 +201,10 @@ function __construct($base = null, $start = true) { } 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 @@ function __read($id) { 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: