Welcome Guest, Not a member yet? Register   Sign In
db session session_data into an array

Hi guys,

I am currently using the DB session extension of CI to deal with user sessions and authorisation. I have hit a bit of a problem though. Ideally I would like to query the database table and put all the items in the session_data field into an array, but because of the way that the data is stored I cannot see an easy way to do this. Has anyone had to deal with this problem and managed to find a way to do it? I'd be most grateful if you could share any ideas. Many thanks,


[eluser]CI TaMeR[/eluser]
I just switched from DB_Session to OB_Session

Following works with DB Session however I can't get it to work with OB Session.

which is the same thing as
$i = $this->session->userdata();

So yes I would like to know also how to get this to work with OB Session, don't wont to switch back if I don't have to.


[eluser]CI TaMeR[/eluser]
Got it for OB Session you do following:

$i = $this->session->userdata;
$i = $this->session->userdata();

Theme © iAndrew 2016 - Forum software by © MyBB