mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
parent
ca32ca185a
commit
4dd13ef554
1 changed files with 1 additions and 2 deletions
|
@ -633,14 +633,13 @@ class CakeSession {
|
||||||
$sessionConfig = Configure::read('Session');
|
$sessionConfig = Configure::read('Session');
|
||||||
|
|
||||||
if (self::_validAgentAndTime()) {
|
if (self::_validAgentAndTime()) {
|
||||||
$time = $config['time'];
|
|
||||||
self::write('Config.time', self::$sessionTime);
|
self::write('Config.time', self::$sessionTime);
|
||||||
if (isset($sessionConfig['autoRegenerate']) && $sessionConfig['autoRegenerate'] === true) {
|
if (isset($sessionConfig['autoRegenerate']) && $sessionConfig['autoRegenerate'] === true) {
|
||||||
$check = $config['countdown'];
|
$check = $config['countdown'];
|
||||||
$check -= 1;
|
$check -= 1;
|
||||||
self::write('Config.countdown', $check);
|
self::write('Config.countdown', $check);
|
||||||
|
|
||||||
if (time() > ($time - ($sessionConfig['timeout'] * 60) + 2) || $check < 1) {
|
if ($check < 1) {
|
||||||
self::renew();
|
self::renew();
|
||||||
self::write('Config.countdown', self::$requestCountdown);
|
self::write('Config.countdown', self::$requestCountdown);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue