1 Reply Latest reply on Apr 15, 2002 1:06 PM by Alejandro Otero Friere

    Session Timeout

    jbossobj Newbie


      I'm running the bundled version of JBoss-2.4.4 Tomcat-4.0.1. I'm trying to set the session timeout to 1 minute for testing purposes and am not able to.

      I do know that there is an element here:
      I have tried to change it and it has no effect. I presume this is overriden somewhere with the bundled version.

      So I then tried it in the web.xml of my web application with this:


      This also has no effect. The timeout occurs after 30 minutes.

      The only way I got this to work is by changing it in my Serlvet such as:

      protected Boolean validateSession(HttpServletRequest request) {
         Boolean validSession = new Boolean("true");
         HttpSession session = request.getSession(true);

         if (session.isNew()) {
           validSession = new Boolean("false");

         return validSession;

      So I don't want to change this in my code. This can lead to potential headaches by implementing this accidently in production!!!
      Can anyone fill me on the story?