tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6331] - Cannot add more than one cookie
Date Fri, 15 Feb 2002 00:47:29 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6331>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6331

Cannot add more than one cookie

remm@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME



------- Additional Comments From remm@apache.org  2002-02-15 00:47 -------
I created a servlet with the following in the service method:

            res.setContentLength(0);

            HttpSession session = req.getSession(true);
            res.addCookie(new Cookie("fred", "wilma"));
            res.addCookie(new Cookie("barney", "betty"));

With a telnet:
GET /examples/servlet/Void HTTP/1.1
Host: localhost

Response is:
HTTP/1.1 200 OK
Content-Length: 0
Date: Fri, 15 Feb 2002 00:42:10 GMT
Server: Apache Tomcat/4.1-dev (HTTP/1.1 Connector)
Set-Cookie: fred=wilma
Set-Cookie: barney=betty
Set-Cookie: JSESSIONID=CEE24AF0AE8AF081E3107AA036636267;Path=/examples

The result was tested with either the 4.0 branch or the HEAD branch.

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message