I have a scenario in which I want to save an object in the config array. I save via
$this->config->set_item('obj', $obj);
It works, I can retrieve its value via:
$this->config->item('obj');
But this values is not being preserved properly. When I go from one page to another, the value is lost. I can store the value in session, cookie or database, but I don't want to. Is there a way I can store the value in some global variable, change it often and the value is preserved as long as the application is open?