tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akash Jain <akash.delh...@gmail.com>
Subject Re: Tomcat 7 : Configure redirect url for session timeout
Date Fri, 14 Mar 2014 22:48:19 GMT
Leo,

If any request comes after session timeout interval ... why would it go
into error ?

I want to keep the session timeout and error scenarios different.


On Fri, Mar 14, 2014 at 3:34 PM, Leo Donahue <donahulf2@gmail.com> wrote:

> On Fri, Mar 14, 2014 at 3:04 PM, Akash Jain <akash.delhite@gmail.com>
> wrote:
>
> >  I have following configuration in `web.xml` in tomcat 7. I am wondering
> if
> > I can add any configurable parameter here, so that if user tries to do
> any
> > operation post 30 minutes, I redirect the user to our home page.
> >
> >     <session-config>
> >           <session-timeout>30</session-timeout>
> >           <cookie-config>
> >                   <domain>mydomain.mycompany.com</domain>
> >                   <http-only>true</http-only>
> >                   <secure>false</secure>
> >           </cookie-config>
> >           <tracking-mode>COOKIE</tracking-mode>
> >     </session-config>
> >
>
> My first thought is you could catch the error in web.xml using an
> error-page and error-code 408, and then use a location to redirect?
>
>
> http://tomcat.apache.org/tomcat-7.0-doc/servletapi/javax/servlet/http/HttpServletResponse.html
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message