Hi,

I think its not possible to add multiple cookies to a
single header,  u can use a dummy header to set the
second cookie. I too had faced the same problem
earlier. If u find out a better solution then this,
please let me know.

Thanks
--- Mike Haberman <[EMAIL PROTECTED]> wrote:
> In 2.1 you only have
> HttpServletResponse.setHeader(name, value)
>    so if you are setting multiple cookies ie name ==
> "Set-Cookie"
>    only the last one is saved
>
> In 2.2 you have HttpServletResponse.addHeader(name,
> value)
>    which allows you to have multiple header values
> for the same name.
>
> I am stuck (living in freebsd land) with 2.1.  How
> can I get
> multiple cookies in the resonse header?
>
> thanks!
>
>
___________________________________________________________________________
> 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


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

___________________________________________________________________________
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