Skip to content
Browse files

Updated default values to reflect the static values previously set

Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information...
1 parent c62ae5e commit 5cf08cbe922e8192750a26b1ec515603ca5367db @voidet voidet committed with markstory
Showing with 6 additions and 6 deletions.
  1. +2 −2 app/config/core.php
  2. +4 −4 cake/libs/cake_session.php
View
4 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'.
View
8 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:

0 comments on commit 5cf08cb

Please sign in to comment.
Something went wrong with that request. Please try again.