I'd like to assign an array to a cookie. But, I can't incrementally assign cookie names, thus, I can't assign different values. Here is the code that should work, but doesn't let me.
count = 0
for each x in Array
Response.Cookies("cookie")(count) = x
count = count + 1
next
This should give a list of cookies that contain the array values. However, I get this error:
Type mismatch: 'Response.Cookies'
I know that for an array to do this, you have to declare the array before you use vaiables for the index indicator like so:
count = 2
Dim Array(20)
ReDim Array(count)
Is there any way to put a variable where the cookie accepts a name?
Or, is there another way to do this?