|
-
Sep 8th, 2004, 08:40 PM
#1
Thread Starter
Fanatic Member
Array of, cookies?
I came across this little problem... see, I want to store products in my cookie like so:
('Product')(intProductID)
Code:
Response.Cookies('Product')(intProductID);
where 'product' is the field in which i locate a product, and intProductID is the value that identifies that product.
I'm sure you can all see the problem with this. Every time i store a cookie in the above statement it overrides the old Product... how can i make some kind of an array or something where it stores
'Product'(id1)(id2)(id3)
or do i actually have to do named values such as
'Product1'(id1)
'Product2'(id2)
and then simply cycle through the cookies using
'Product' + i, where i is the number by which product incriments.
Thanks ladies and gents
ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet? 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|