Permalink
Browse files

Included timeout multiplier factor to be used not just inside a sessi…

…on start

Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information...
voidet authored and markstory committed Apr 28, 2010
1 parent a4950f6 commit c62ae5e48a7de8cbbf7e0241d201f75ab9ddfb57
Showing with 12 additions and 12 deletions.
  1. +12 −12 cake/libs/cake_session.php
View
@@ -198,18 +198,18 @@ function __construct($base = null, $start = true) {
}
$this->sessionTime = $this->time + (Security::inactiveMins() * Configure::read('Session.timeout'));
$this->security = Configure::read('Security.level');
- switch ($this->security) {
- case 'medium':
- $this->factor = 100;
- break;
- case 'low':
- $this->factor = 300;
- break;
- case 'high':
- default:
- $this->factor = 10;
- break;
- }
+ }
+ switch ($this->security) {
+ case 'medium':
+ $this->factor = 100;
+ break;
+ case 'low':
+ $this->factor = 300;
+ break;
+ case 'high':
+ default:
+ $this->factor = 10;
+ break;
}
parent::__construct();
}

0 comments on commit c62ae5e

Please sign in to comment.