Skip to content

Commit

Permalink
Merge pull request bcit-ci#2267 from dionysiosarvanitis/fix/_update_db
Browse files Browse the repository at this point in the history
Issue bcit-ci#2086 Session_cookie's _update_db not guaranteed to update
  • Loading branch information
narfbg committed Feb 19, 2013
2 parents 505c391 + 558cc3f commit ff83211
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/libraries/Session/drivers/Session_cookie.php
Expand Up @@ -602,6 +602,9 @@ public function _update_db()
$set['user_data'] = $this->_serialize($userdata);
}

// Reset query builder values.
$this->CI->db->reset_query();

// Run the update query
// Any time we change the session id, it gets updated immediately,
// so our where clause below is always safe
Expand Down

0 comments on commit ff83211

Please sign in to comment.