8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e980335 + 56b29a7 commit 60adbddCopy full SHA for 60adbdd
src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php
@@ -387,7 +387,7 @@ public function close()
387
$this->gcCalled = false;
388
389
// delete the session records that have expired
390
- $sql = "DELETE FROM $this->table WHERE $this->lifetimeCol + $this->timeCol < :time";
+ $sql = "DELETE FROM $this->table WHERE $this->lifetimeCol < :time - $this->timeCol";
391
392
$stmt = $this->pdo->prepare($sql);
393
$stmt->bindValue(':time', time(), \PDO::PARAM_INT);
0 commit comments