Storing arrays in cookies?

Results 1 to 3 of 3

Thread: Storing arrays in cookies?

  1. #1
    Join Date
    Dec 1969

    Default Storing arrays in cookies?

    Hello,<BR><BR>I have a two dim. array that I need to persist. Seems like other people are having the same need. Is there a way to store that in a cookie or do you have to convert it to a string and rebuild it with split?<BR><BR>thanks,<BR><BR>dave

  2. #2

    Default RE: Storing arrays in cookies?

    Easiest way is just that, to convert to a string and use split to rebuild.<BR><BR>You can also loop through the array items and create a dictionary cookie. <BR><BR>The thing to be aware of is that browsers limit the size of a cookie being stashed, so use the string/split method !<BR><BR>

  3. #3
    Jason Guest

    Default RE: Storing arrays in cookies?

    This thread might give you some ideas on how to use split with a string to create a two-dimensional array:<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts