Welcome Guest, Not a member yet? Register   Sign In
Session data disappears
#1

[eluser]capypara[/eluser]
Hi all, I am facing this problem where my session data seems to just disappear.

The flow goes like this:
1) In my model i set the session data like this
$query = array('sql_query' => $this->db->last_query());
$this->session->set_userdata($query);
2) from my model i go back to the controller, and from there back to my view
3) in my view i display the session using $this->session->userdata('sql_query'); At this point the data gets displayed with no problems.
4) i click on a pagination link, which calls a method in my controller. I used echo to look at the data and its already gone in the controller.

My server time is correct, and i am auto-loading the session library in autoload.php . What am i doing wrong?




Theme © iAndrew 2016 - Forum software by © MyBB