[eluser]Natebot[/eluser]
[quote author="warrennz" date="1240632069"]Im not 100% on this but one of the DB Session handlers I used to use allowed you to do
Code:
$this->session->userdata('user_details','user_id'); //Return 900;
Is that the sorta thing you're after?[/quote]
Unfortunately the method doesn't take a second argument (though you could extend it to do it).
So the call just returns the user_details array.
The session data's custom user data is stored in a serialized array. So your data is store, along with any other custom data, like so:
Code:
a:2:{s:12:"custom_data";s:13:"custom_data_value";s:12:"user_details";a:2:{s:7:"user_id";s:3:"900";s:8:"username";s:8:"John Doe";}}
The session class will get and unserialize the data all in one go.