Welcome Guest, Not a member yet? Register   Sign In
Redirect create a new session row in the database
#1

[eluser]it.peds[/eluser]
I have tried with different config, autoload or load at controller construct, and different browsers, but all have a same result, <b>
Code:
redirect('another_controller')
creates a new row with every field is same except session_id & userdata in the session table in the database</b>

I store log-in information in the userdata. I vardump
Code:
$this->session->all_userdata()
after passing the verification, and I can see the stored userdata; however, I vardump it again in the redirected controller, and all I see is a new session without any userdata and with different session_id, even the last_activity is same (should this be a timestamp?).

I am using CI 2.1.2 to develop a website that requires log-in. Please suggest either how to fix this redirect + session problem or another way to remember an user is logging in. Thank you very much.

BTW, I just realize refreshing pages also creates a new session row. And forget to mention, even with or without .htaccess to hide the index.php, same result.


Messages In This Thread
Redirect create a new session row in the database - by El Forum - 08-09-2012, 02:40 PM
Redirect create a new session row in the database - by El Forum - 08-31-2012, 02:49 PM
Redirect create a new session row in the database - by El Forum - 08-31-2012, 03:42 PM
Redirect create a new session row in the database - by El Forum - 08-31-2012, 04:19 PM
Redirect create a new session row in the database - by El Forum - 08-31-2012, 06:28 PM
Redirect create a new session row in the database - by El Forum - 09-01-2012, 03:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB