I have updated my config variable in my model using:
$this->config->set_item('userid', $user_id);
if i echo it in the model i can see that it gets set.
But if i echo it in the controller or another model using:
echo $this->config->item('userid');
it shows the original value.
I need to store this config variable throughout the session but i do not want to use session variables.