DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=34245>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34245 Summary: HttpServletRequest.getSession() does not set up cookie after HttpServletResponse.reset() was called Product: Tomcat 5 Version: 5.5.9 Platform: Sun OS/Version: Windows 2000 Status: NEW Severity: major Priority: P2 Component: Servlet & JSP API AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] For the following code snippet (which also appears in the uploaded sample code): -------------------------------------------------------------------------------- protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, java.io.IOException { req.getSession(); resp.reset(); req.getSession(); resp.getWriter().println("<b>Hello World!</b>"); } ------------------------------------------------------------------ the JSESSIONID cookie is not set in the response header. It seems that once response.reset() has been called, the session cookie will not be inserted into the response header even though request.getSession() is called again. The attached WAR file demonstrates this problem. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]