Session is saving only records and it's not saving the rest of the records in PHP?

Khala

New Member
\[code\]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\[/code\]I am saving an array called \[code\]$mycart\[/code\] 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??
 
Back
Top