ODBiC Discussion Board

dynamically allocated cookie variables

by Max Steiner
September 1, 2002 09:26

I'm trying to hold items a customer is going to purchase in a cookie until they are ready to check-out. They could potentially order as many as 250 items before checking out. I was thinking that I would dynamically allocate the variables in the cookie something like this:

item1 = 15 apples item2 = 20 pears item3 = 3 carrots ... item200 = 12 peaches

However, when I attempt to do this: <!--SETCOOKIE item$x$ = pears, EXPIRES = 1d-->

It stores the cookie with the following variable (item$x$) instead of (item1) like I wanted.

Any ideas? Or is there a better way of approaching this..



Post Your Reply:

E-mail  optional

HTTP Link: 
Link text: 

Copyright ©1997, Roger Harris. All rights reserved.