Question:To add session data one item at a time, which code is used?
A $this->session->set_userdata('item_name','item_value');
B $data=array('username'=>'afzal', 'email'=>'afzal@yahoo.com','logged_in'=>TRUE); $this->session->set_userdata($data);
C $data=array( 'username'=>'afzal', 'email'=>'afzal@yahoo.com','logged_in'=>TRUE);
D None
+ AnswerA
+ Report