>i'm experiencing bizarre behaviour with cookies.  I set a cookie named "a"
in
>one servlet, and a
>cookie called "b" in another.  They each have a maximum age of about a
year.
>It seems though, that setting one deletes the other.  I've looked at the
>tutorial and the API and it would seem i'm doing everything right. So
whenever
>"b" gets set, "a" is not available at the next request, and vice-versa.


It's not that bizarre when both cookies are set from the same server (in
other words, both servlets run on the same server). You can only store one
cookie per server, otherwise you would be able to flood your client with
millions of cookies, either by accident (code bug) or on purpose.

Arjan Houtman
Antares Informatisering
[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to