Skip to content

Commit

Permalink
Included timeout multiplier factor to be used not just inside a sessi…
Browse files Browse the repository at this point in the history
…on start

Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information
voidet authored and markstory committed May 11, 2010
1 parent a4950f6 commit c62ae5e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions cake/libs/cake_session.php
Expand Up @@ -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();
}
Expand Down

0 comments on commit c62ae5e

Please sign in to comment.