You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/12/20 21:44:23 UTC
DO NOT REPLY [Bug 25676] New: -
Why the session is invalidaed?
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25676>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25676
Why the session is invalidaed?
Summary: Why the session is invalidaed?
Product: Tomcat 5
Version: 5.0.16
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Major
Priority: Other
Component: Servlet & JSP API
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: agilejava@hotmail.com
I have two web application,one name is "/one" and other is "/two".
Now,one servlet named "test0" in "/one" will request the servlet named "test2"
in "/two",the code is :
ServletContext sc = request.getSession().getServletContext().getContext("/two");
sc.getRequestDispatcher("/test2").forward(request,response);
and there are codes in servlet "test2" :
request.getSession().isNew();
then this code throw an Exception:"session is invalidated".I'd like to know the
exception is right?
If it is right,but the same code worked well in Tomcat4.1.12-LE-jdk1.4. Maybe
it is a bug!
Regards.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org