Skip to content

Commit

Permalink
Updated default values to reflect the static values previously set
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information
voidet authored and markstory committed May 11, 2010
1 parent c62ae5e commit 5cf08cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/config/core.php
Expand Up @@ -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'.
Expand Down
8 changes: 4 additions & 4 deletions cake/libs/cake_session.php
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 5cf08cb

Please sign in to comment.