Permalink
Browse files

Fixing issue where Config.timeout wouldn't correctly countdown when m…

…any quick requests were sent.
  • Loading branch information...
1 parent 05beaab commit 6e355312bbefd69a5bb945caeb5b4b85e1e1e939 @markstory markstory committed May 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/libs/cake_session.php
View
4 cake/libs/cake_session.php
@@ -614,8 +614,8 @@ function _checkValid() {
$this->write('Config.time', $this->sessionTime);
if (Configure::read('Security.level') === 'high') {
$check = $this->read('Config.timeout');
- $check = $check - 1;
- $this->write('Config.timeout', Security::inactiveMins());
+ $check -= 1;
+ $this->write('Config.timeout', $check);
if (time() > ($time - (Security::inactiveMins() * Configure::read('Session.timeout')) + 2) || $check < 1) {
$this->renew();

0 comments on commit 6e35531

Please sign in to comment.