Welcome Guest, Not a member yet? Register   Sign In
Session is deleted when read a flash data
#1

[eluser]Unknown[/eluser]
Hi guys.
I think I'm with a silly problem. I want to pass some information using flash data, but when I read it, it deletes not only the information in the flash data, but also the entire session. So, the system returns to the login page because the user session is deleted, as if the user has been logged out.
I used this command $this->db->last_query() to see what was the last query, and it returned DELETE FROM `ci_sessions` WHERE `last_activity` < 1317113470

In outher words, it deleted everything.
My question is: how can I use the flash data and maintain the user session after it? Do I have to update the user session every time?




Theme © iAndrew 2016 - Forum software by © MyBB