Welcome Guest, Not a member yet? Register   Sign In
Sessions in database - How to retrieve/deserialize user_data items
#1

[eluser]mradlmaier[/eluser]
Hello all,

I have my sessions stored in the database.

So the user_data itimes are stored in one long String, which outputted with var_dump() looks like this:

Quote:string(86) "a:3:{s:11:"logged_user";s:5:"michi";s:7:"user_id";s:1:"9";s:8:"username";s:5:"michi";}"

Does anybody know an easy way to read the value of user_id and username?

Somewhere in CI there must already exist a function whih does the deserializing of this string.
Just dont know which and how to call that function?

Thanks,
Michael


Messages In This Thread
Sessions in database - How to retrieve/deserialize user_data items - by El Forum - 09-19-2009, 12:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB