Sessions in the database were not destroying correctly.
This commit is contained in:
parent
76fd05d509
commit
ccf728605d
1 changed files with 1 additions and 3 deletions
|
@ -226,7 +226,7 @@ class Session extends Object
|
|||
{
|
||||
$sql = 'REPLACE INTO `' . $this->table . '` VALUES (?, ? ,?);';
|
||||
|
||||
$parameters = array($id, $session, date('Y-m-d H:i:s', $this->accessed_at));
|
||||
$parameters = array($id, $session, date('Y-m-d H:i:s', strtotime('+' . $this->time_to_live . ' seconds')));
|
||||
|
||||
return $this->db->execute($sql, $parameters);
|
||||
}
|
||||
|
@ -243,8 +243,6 @@ class Session extends Object
|
|||
{
|
||||
$sql = 'DELETE FROM `' . $this->table . '` WHERE id = ?;';
|
||||
|
||||
$this->initialize();
|
||||
|
||||
return $this->db->execute($sql, array($id));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue