Click to See Complete Forum and Search --> : storing an array in a session variable


mparker1113
11-28-2006, 03:47 PM
Hi,

I would like to keep track of shopping cart orders in an array. So, i have a session variable $_Session['num_of_orders']

I would like to keep track of $_Session['product'] through an array, so that $_Session['product'][0] would be the first product ordered, and [1] the second, etc.

I have tried the coding as is listed in my explanation, and it doesn't seem to work.

Anyone know how to do this?

NogDog
11-28-2006, 05:40 PM
Have you started each page that needs to read from or write to the $_SESSION array with a session_start() command?