diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 1ee23c47fd..54f140ec27 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -3950,10 +3950,7 @@ class ztSessionHandler implements SessionHandlerInterface $count = 0; foreach(glob("{$this->sessSavePath}/sess_*") as $fileName) { - if(filemtime($fileName) + $maxlifeTime < $time) - { - if(unlink($fileName)) $count++; - } + if(filemtime($fileName) + $maxlifeTime < $time && unlink($fileName)) $count++; } return $count;