Welcome Guest, Not a member yet? Register   Sign In
Trying to store session data then redirect - Failing to store session! (First post...)
#1

[eluser]Unknown[/eluser]
Something is strange here. I have a controller called "auth" that sets a variable to a session and redirects back to the home page:

Code:
$this->session->set_userdata('userid', $row['id']);

redirect('home', 'refresh');

Everything is working fine except for the session which does not get populated unless I add some random variables to my query string. What it looks like is the code is caching somehow and ignoring "set_userdata". If I play around with "shift-F5" I can get the session to set.

Anyone know why this is happening?

THANKS!!!


Messages In This Thread
Trying to store session data then redirect - Failing to store session! (First post...) - by El Forum - 06-06-2008, 10:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB