I'm having a little issue, when I do this:
$_SESSION['cartItems'] = array();
It works fine, and it creates a cartItems array in the session.
But when I do this:
$_SESSION[2]['cartItems'] = array();
This works until I refresh the page, then it forgets this session array?
I tried to create the 2 array first:
$_SESSION[2] = array();
$_SESSION[2]['cartItems'] = array();
But still does not work like it is supposed to do.
How can I solve this?