Summary: | response.SendRedirect() resets/destroys Cookies that were set by response.addCookie() BugRat Report#440 | ||
---|---|---|---|
Product: | Tomcat 3 | Reporter: | Kevin Guan <kevin.guan> |
Component: | Unknown | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | P1 | ||
Version: | Unknown | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All |
Description
Tomcat Developers Mailing List
2000-11-27 10:29:43 UTC
A simple test in Tomcat 3.2.3 and Tomcat 3.3 shows that response.SendRedirect() does not clear a Cookie that has been set. Marking as fixed. I think the combination of includes and redirects does the trick. I'm certainly seeing it in effect in my app. Instead of performing a "simple test", try my scenerio: a main index looks for a cookie. If it finds none, it sendRedirects to a page that adds a cookie and then sendRedirects back to the index, with an added param for "triedcookie". If it still can't find a cookie, but the "triedcookie" param was present, it figures their browser is rejecting cookies and goes on with its work, which in this case uses some includes to build out the HTML. Keep up the good work. |