this is my problem... I added to the construct of CI_Controller these lines
$this->load->library("session");
if($this->session->userdata("var")==FALSE)
{
$this->session->set_userdata("var", "value");
}
And when I use $this->session->userdata("var") in a child class, it doesn't have a value. I tested that by showing the value of $this->session->userdata("var") in the construct of CI_COntroller and in the construct of the child class and it shows me the value on the father but no on the child.
There is another thing, after reload the page about 3 or 4 times. It works very well.
I will be grateful for your answers. (And I'm sorry I'm not an English speaker)