---| Page Request |---
GET /menuMain/main.jsp HTTP/1.0
Host: host
Connection: CLOSE
Accept: */*
Cookie: JSESSIONID=To1020mC17822254849486285At;Path=/menuMain
User-agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
Referer: http://host/menuNews/index.html
Content-Type: text/html
------------------
---| Response |---
HTTP/1.1 500
Date: Tue, 23 Jul 2002 20:33:32 GMT
Server: Apache/1.3.12 (Win32) tomcat/1.0
Content-Language: en
Servlet-Engine: Tomcat Web Server/3.1 (JSP 1.1; Servlet 2.2; Java
1.4.0_01; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)
Connection: close
Content-Type: text/html
------------------
---| Response Body |---
<h1>Error: 500</h1>
<h2>Location: /menuMain/main.jsp</h2><b>Internal Servlet Error:</b><br>
<pre>
java.lang.IllegalArgumentException: Cookie name Path is a reserved token
at javax.servlet.http.Cookie.<init>(Cookie.java:185)
at
org.apache.tomcat.util.RequestUtil.processCookies(RequestUtil.java:187)
at
org.apache.tomcat.core.RequestImpl.getCookies(RequestImpl.java:379)
at
org.apache.tomcat.request.SessionInterceptor.requestMap(SessionInterceptor.java:101)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:594)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:552)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:536)
</pre>
------------------
Request sent:
GET /UsageReports/process HTTP/1.0
Response received :
HTTP/1.1 200 OK
Content-Type: text/html;charset=ISO-8859-1
Date: Mon, 19 Aug 2002 16:04:48 GMT
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
Connection: close
Set-Cookie: JSESSIONID=B7B081E621832A705C04F51BA566D11E;Path=/UsageReports
In the second request I am setting JSESSIONID back, because I want to
maintain session between these two requests :
GET /UsageReports/process HTTP/1.1
Cookie: JSESSIONID=B7B081E621832A705C04F51BA566D11E;$Path=/UsageReports
Response received:
HTTP/1.1 200 OK
Content-Type: text/html;charset=ISO-8859-1
Date: Mon, 19 Aug 2002 16:04:49 GMT
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
Connection: close
Set-Cookie: JSESSIONID=97FDEE4006B9B0F7EEDFEF95D69D9D93;Path=/UsageReports
It is creating a different Session. It did not receive the Cookie
information sent back.
Please let me anyone knows the answer for this. There have been
postings since 1998 on this problem. Somebody should know the solution
:P
-Kishan-
Haitham Mahmoud <hait...@hotmail.com> wrote in message news:<3D3DBF65...@hotmail.com>...