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 a7759b6 commit 47bd987Copy full SHA for 47bd987
src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php
@@ -375,7 +375,7 @@ public function close()
375
$this->gcCalled = false;
376
377
// delete the session records that have expired
378
- $sql = "DELETE FROM $this->table WHERE $this->lifetimeCol < :time - $this->timeCol";
+ $sql = "DELETE FROM $this->table WHERE $this->lifetimeCol < :time - CAST($this->timeCol AS SIGNED)";
379
380
$stmt = $this->pdo->prepare($sql);
381
$stmt->bindValue(':time', time(), \PDO::PARAM_INT);
0 commit comments