mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing issue where Config.timeout wouldn't correctly countdown when many quick requests were sent.
This commit is contained in:
parent
05beaab272
commit
6e355312bb
1 changed files with 2 additions and 2 deletions
|
@ -614,8 +614,8 @@ class CakeSession extends Object {
|
|||
$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();
|
||||
|
|
Loading…
Reference in a new issue