Commit c2b7e60b authored by Taylor Otwell's avatar Taylor Otwell

Cleaning up DB session driver.

parent 7af9e08a
......@@ -27,6 +27,7 @@ class DB implements \System\Session\Driver {
public function save($session)
{
$this->delete($session['id']);
$this->table()->insert(array('id' => $session['id'], 'last_activity' => $session['last_activity'], 'data' => serialize($session['data'])));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment