function mycart($mydate=null,$day=null)
{
$mycart= $this->session->userdata('mycart');
$totalprice=$this->session->userdata('totalprice');
if($this->limitation($mydate) && (!(isset($mycart[$mydate]))) )
{
$mycart[$mydate] = array(
'meal' =>$this->session->userdata('meal'),
'day' =>$day,
'date' =>$mydate,
'disable'=>FALSE,
'flag'=>null);
$this->session->set_userdata('mycart',$mycart);
$this->session->set_userdata('totalprice',$totalprice);
}// end of if
}// end of function
I am saving an array called $mycart
in session but only 10 carts, i.e, only 10 records are getting saved after which 11th one is not getting saved in session. The session only save 10 array element can any one tell me why??