$ses_data['key1'] = 'value'; $ses_data['another_key'] = array('key' => 'val') $this->session->set_userdata($ses_data)