protected function _ci_init_vars() { parent::_ci_init_vars(); // An added feature: Keep all the flash data on AJAX requests. if (IS_AJAX_REQUEST) { $this->keep_flashdata(); } }