Skip to content

Commit

Permalink
Update SessionHandler.php
Browse files Browse the repository at this point in the history
Ensure we store data in correct columns
  • Loading branch information
JamieCressey committed Oct 6, 2015
1 parent 5ef6981 commit 3ccd68a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function read($id)

public function write($id, $data)
{
$sql = "REPLACE INTO $this->dbTable VALUES(:id, :data, :timestamp)";
$sql = "REPLACE INTO $this->dbTable (id, data, timestamp) VALUES(:id, :data, :timestamp)";
$params = array("id"=>$id, "data"=>$data, "timestamp"=>time());
return $this->dbConnection->query($sql, $params);
}
Expand Down

0 comments on commit 3ccd68a

Please sign in to comment.