[eluser]Unknown[/eluser]
Hi all,
I'm developing an application that will track corporate performance measures and their values. The values are displayed in a JQuery datatable to allow the user to perform inline editing. In order to "remember" which measure to associate a set of values with, I am using a session variable. This works fine in Chrome, where the session variable contains the measure ID, but in IE 9, the same variable has a value of 'css'. The value of the session variable is being pulled from the third URI segment.
I have googled around for solutions to this problem, but no luck so far.
Session config:
Code:
$config['sess_cookie_name'] = 'cisession';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = TRUE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;
Model code for inserting a value into the database
Code:
public function insert($which_measure)
{
$query = "";
$value = $this->input->post('val');
$now = $this->input->post('date');
$field['measure_id'] = $which_measure;
$field['value'] = $value;
$field['date_entered'] = $now;
$insert = $this->db->insert('measure_values', $field);
$last_value_inserted = $this->db->insert_id();
return $last_value_inserted;
}
measures controller, creating the session variable that holds the id of the current measure
Code:
public function details()
{
$this->load->library('session');
$this->session->set_userdata('measure_id', $this->uri->segment(3));
$data['details'] = $this->measure_model->get_details($this->uri->segment(3));
$this->load->view('templates/header');
$this->load->view('measures/detail_view', $data);
$this->load->view('templates/footer');
}