Skip to content

Commit 56b29a7

Browse files
committed
pdo session fix
1 parent dd490af commit 56b29a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public function close()
387387
$this->gcCalled = false;
388388

389389
// delete the session records that have expired
390-
$sql = "DELETE FROM $this->table WHERE $this->lifetimeCol + $this->timeCol < :time";
390+
$sql = "DELETE FROM $this->table WHERE $this->lifetimeCol < :time - $this->timeCol";
391391

392392
$stmt = $this->pdo->prepare($sql);
393393
$stmt->bindValue(':time', time(), \PDO::PARAM_INT);

0 commit comments

Comments
 (0)