T
Tim Strawhacker
Hello --
I've got some code that adds five cookies to an HttpServletResponse by
calling addCookie() on it. I know that the cookies are correct, and that
I'm executing the code to add them. These cookies are sequentially added to
the same HttpServletResponse object in the same doPost() method.
When I call readCookies() on a later HttpServletRequest, I only get one
cookie back -- the last one that was written. I thought at first that maybe
I could write only one cookie per HttpServletResponse, so I was perhaps
overwriting a "slot" in the HttpServletResponse structure, but I know I've
seen examples that wrote multiple cookies together.
Any idea what else could be going wrong?
Thanks,
Tim
I've got some code that adds five cookies to an HttpServletResponse by
calling addCookie() on it. I know that the cookies are correct, and that
I'm executing the code to add them. These cookies are sequentially added to
the same HttpServletResponse object in the same doPost() method.
When I call readCookies() on a later HttpServletRequest, I only get one
cookie back -- the last one that was written. I thought at first that maybe
I could write only one cookie per HttpServletResponse, so I was perhaps
overwriting a "slot" in the HttpServletResponse structure, but I know I've
seen examples that wrote multiple cookies together.
Any idea what else could be going wrong?
Thanks,
Tim