Why not use HttpServletResponse.addCookie?

> -----Original Message-----
> From: Mike Haberman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 28, 2000 5:53 PM
> To: [EMAIL PROTECTED]
> Subject: How to add multiple cookies in 2.1 ?
>
>
> 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

___________________________________________________________________________
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