[eluser]Unknown[/eluser]
Hi guys!
I got some problem with creating a two dimensional session array in Codeigniter. I used the following code before I was using codeigniter and it worked perfectly:
Code:
$_SESSION['products'][] = array(
...
);
The previous code allways adds the new information after the last one in the array. The code i use in Codeigniter replace existing data with new.
I use the following code in Codeigniter:
Code:
$session_array[] = array(
...
);
$this->session->set_userdata('products', $session_array);
How can I create a two dimensional session array without replacing existing data with new data?
Thanks in advance!
// Henrik Gerdin