I store few data in session as the following:
$session_data = array("uid" => "test user", "loged_in" => true);
$this->session->set_userdata($session_data);
To modify the "uid" I tried
$uid = array("uid" => "New user");
$this->session->set_userdata($uid);
It did not work so I tried
$this->session->set_userdata("uid","New user");
It also did not work. Cant find any useful stuff on google. Please help how can I change values in the session??
$this->output->enable_profiler(TRUE);?