I'm assuming you're following the rules regarding cookies.
If all you want to do is add to an existing cookie, it's probably
easiest to:
1. Read the existing cookie data into a variable.
2. Add (concatenate) the new data to the variable.
3. Rewrite the cookie, now with the added data in the variable.
If the new, updated cookie has the same name as an existing
cookie, it'll just overwrite it.
Good luck,
db
| [reply] |
Cookies are limited to a certain maximum length, which is 4K. Once you write past the 4K limit, the browser will not recognize any more information in the cookie. I don't know what the HTTP::Cookie module will do, in that case. If it meets spec, it will truncate your cookie data to 4K. CookieCentral has some good information on this.
--Chris
e-mail jcwren | [reply] |