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

[eluser]medvind[/eluser]
Hello!
I'm trying to understand the session class.

I have multiple controllers that will write to and read from the session cookie. Let's say we've got Controller A and Controller B.

Now, when Controller A does this:
Code:
$userdata['test'] = "hello";
$this->session->set_userdata($userdata);

And Controller B does this:
Code:
echo $this->session->userdata('test');

I expect to get a "hello". Instead there is nothing. The user data is gone. I must have misunderstood something here, but what?


Messages In This Thread
Session data handling - by El Forum - 08-21-2009, 07:18 AM
Session data handling - by El Forum - 08-21-2009, 08:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB