[eluser]kerell78us[/eluser]
I wish to store some session data as a multi-dimensional array however, I am not sure how to reading the stored data using the
Code:
$this->session->userdata('member')
e.g.
Code:
$users = array();
$colors = array('red', 'blue', 'orange', purple');
foreach($users as $key => $user) {
$members[$key] = array(
'user_id' => $user['user_id'],
'colors' = $colors);
}
To set the session data with the following line of code...
Code:
$this->session->set_userdata('member', $members);
My question is how do I retrieve the 'colors' array for a particular user from the session data for that user?