I store few data in session as the following:
$session_data = array(\"uid\" => \"test user\", \"loged_in\" => true); $this->session->set_userdat
///set session data $data = array('Id' => 'test Id', 'is_logged_in' => TRUE); $this->session->set_userdata($data); // modify session data $this->session->set_userdata('Id', 'New test Id');