http://nagoya.apache.org/bugzilla/show_bug.cgi?id=234 *** shadow/234 Fri Feb 2 13:54:47 2001 --- shadow/234.tmp.14815 Fri Feb 2 13:54:47 2001 *************** *** 0 **** --- 1,24 ---- + +============================================================================+ + | Can't set multiple cookies in servlet response headers through Ajp13 BugRa | + +----------------------------------------------------------------------------+ + | Bug #: 234 Product: Tomcat 3 | + | Status: RESOLVED Version: Nightly Build | + | Resolution: FIXED Platform: All | + | Severity: Normal OS/Version: All | + | Priority: High Component: Connectors | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + If a servlet sets more than one cookie using HttpServletResponse.addCookie(), one +one of the cookies is actually returned in the response. This occurs because the HTTP +header fields are returned by a mechanism which can return only one instance of each +HTTP header field. + + Specifically: + + Ajp13ConnectorResponse.endHeaders(..) calls + MimeHeaders.names() which returns a MimeHeadersEnumerator. + This Enumerator builds its list of values from a HashTable, + from the comments "to guarantee uniqueness". The Ajp13..endHeaders() call then loops +over this (unique) list of field names, passing each as the argument to +MimeHeaders.getHeader(headerName), which returns one value (from observation, the +first one set). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]