You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/09/29 13:32:50 UTC

BugRat Report #180 has been filed.

Bug report #180 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/180>

REPORT #180 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: webbug
State: received
Priority: high
Severity: critical
Confidence: public
Environment: 
   Release: 3.1 and 3.2beta4
   JVM Release: 1.2.2 1.3
   Operating System: Linux and NT
   OS Release: SuSe 7.0 and NT 4.0
   Platform: Pentium III

Synopsis: 
Header Refresh and URLRewriting not work

Description:
Browser has Cookie disabled, and I will Load any Servlet after 2 second's
The Browser send the URL without SessionId, the second ";" ignored

The Result of the Examples is "2; 
URL=anyServlet;jsessionid=To1011mC4382072283999452At"

The GET-Request for the Server is only anyServlet.

Example one:
	res.setContentType("text/html");
	res.setHeader("Cache-Control","no-cache,no-store");
	res.setHeader("Pragma","no-cache");
	HttpSession session = req.getSession(true);
	res.setHeader("Refresh","2; 
URL="+res.encodeRedirectURL("anyServletName"));
Example two:
&lthead&gt
  &ltmeta http-equiv="refresh" content="2; 
URL="+res.encodeRedirectURL("anyServletName")&gt
  &lt/head&gt