Welcome Guest, Not a member yet? Register   Sign In
Session not storing data across functions?
#1

[eluser]fireproofsocks[/eluser]
I'm going nuts... I'm missing something.

This works:

$this->session->set_userdata('email', 'xyz' );
print "email: " . $this->session->userdata('email');

But when I separate the functions by setting the email in one controller, then redirecting to a new controller via header(), the email comes up blank when I try to read it in the 2nd controller function.

What's going on?


Messages In This Thread
Session not storing data across functions? - by El Forum - 01-29-2010, 11:32 PM
Session not storing data across functions? - by El Forum - 01-29-2010, 11:36 PM
Session not storing data across functions? - by El Forum - 01-30-2010, 12:17 AM
Session not storing data across functions? - by El Forum - 01-30-2010, 12:21 AM
Session not storing data across functions? - by El Forum - 01-30-2010, 12:52 AM
Session not storing data across functions? - by El Forum - 01-30-2010, 01:31 AM
Session not storing data across functions? - by El Forum - 01-31-2010, 07:28 PM
Session not storing data across functions? - by El Forum - 01-31-2010, 08:58 PM
Session not storing data across functions? - by El Forum - 01-31-2010, 09:08 PM
Session not storing data across functions? - by El Forum - 01-31-2010, 09:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB