Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix issue where session would always be regenerated.

Fixes #2519
  • Loading branch information...
commit 4dd13ef55456b4ad89a394127048df2486597db4 1 parent ca32ca1
@markstory markstory authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/Cake/Model/Datasource/CakeSession.php
View
3  lib/Cake/Model/Datasource/CakeSession.php
@@ -633,14 +633,13 @@ protected static function _checkValid() {
$sessionConfig = Configure::read('Session');
if (self::_validAgentAndTime()) {
- $time = $config['time'];
self::write('Config.time', self::$sessionTime);
if (isset($sessionConfig['autoRegenerate']) && $sessionConfig['autoRegenerate'] === true) {
$check = $config['countdown'];
$check -= 1;
self::write('Config.countdown', $check);
- if (time() > ($time - ($sessionConfig['timeout'] * 60) + 2) || $check < 1) {
+ if ($check < 1) {
self::renew();
self::write('Config.countdown', self::$requestCountdown);
}
Please sign in to comment.
Something went wrong with that request. Please try again.