Skip to content

Commit

Permalink
Fixing issue where Config.timeout wouldn't correctly countdown when m…
Browse files Browse the repository at this point in the history
…any quick requests were sent.
  • Loading branch information
markstory committed May 11, 2010
1 parent 05beaab commit 6e35531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/cake_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6e35531

Please sign in to comment.