>"java.lang.IllegalStateException: Attempt to access an invalidated
>session".
>Even if I have the invalidate() immediately after a session is created
>as below:
>
>HttpSession mySession=request.getSession(true);
>mySession.invalidate();
>
What line does the error occur on? Is it the invalidate() line or
elsewhere? Are you performing URL rewriting? I ask this cos I found out
that on some web servers performing a response.encodeURL() will throw an
error if you previously closed the session.
>Also, when I try to set the timeout using setMaxInactiveInterval() as
>below:
>mySession.setMaxInactiveInterval(int);
> I got this compiling error message:
>"Error: Method setMaxInactiveInterval(int) not found in
>javax.servlet.http.HttpSession".
setMaxInactiveInterval is a JSDK 2.2 API call. Make sure you have JSDK 2.2
and its on your classpath.
>
>Is there anything wrong with what I do?
>
>Your help is greatly appreciated.
>
>Li
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html