function update_session($force = false) { if ($force || $this->session->last_update + $this->_update_interval < time()) { $this->session->last_update(); $this->user->last_update(); $this->update_cookies(); } }