Sessions in the database were not destroying correctly.

This commit is contained in:
Josh Sherman 2011-05-14 09:54:00 -04:00
parent 76fd05d509
commit ccf728605d

View file

@ -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));
}