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.
1 parent dd490af commit 56b29a7Copy full SHA for 56b29a7
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