]> git.andy128k.dev Git - ipf.git/commitdiff
fix session deletion
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 27 Jan 2018 14:31:03 +0000 (15:31 +0100)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 27 Jan 2018 14:31:03 +0000 (15:31 +0100)
ipf/session/app.php

index 0c0ad8987a30d3b69f70cad3f9be712ac390bf81..61db6790f343f35b9f07f77dc6378ac59909430c 100644 (file)
@@ -128,7 +128,7 @@ class DBSession extends Session
     {
         $connection = self::getConnection();
         $stmt = $connection->prepare('DELETE FROM session WHERE session_key = :key');
-        $stmt->bindValue('key', $key, PDO::PARAM_STR);
+        $stmt->bindValue('key', $this->key, PDO::PARAM_STR);
         $stmt->execute();
 
         $this->key = null;