Welcome Guest, Not a member yet? Register   Sign In
Retrieve all session data as one array
#1

[eluser]fatdog[/eluser]
Is there a way to retrieve all session data as one big array, without defining the index?

Code:
$this->session->userdata();

This is obviously not working.

If there isn't a built in method, how should I approach this problem?
Thanks
#2

[eluser]Shrike67[/eluser]
You can use:

Code:
$this->session->all_userdata();

;-)
#3

[eluser]fatdog[/eluser]
{insert cursing here}
Thanks, I swear I didn't see that function on the Session class. I blame it on friday.




Theme © iAndrew 2016 - Forum software by © MyBB