2 Replies Latest reply on Jun 26, 2002 6:00 PM by billotte

    Session loss...

    kpseal

      I'm using JBoss 3.0.0 RC1 with Catalina and it's causing me a bit of a nightmare!
      It's creating a new session for every request - thereby making everything next to useless.
      Here's a test JSP that I've been using. It displays a different value every time I refresh:
      [pre]
      <%
      String val = (String)request.getSession(true).getAttribute("test");
      if(val == null)
      {
      val = String.valueOf(Math.random());
      request.getSession(true).setAttribute("test", val);
      }
      %>
      <%= val %>
      [/pre]
      I've not made any changes to the default Catalina configuration so I'm rather confused - this problem seems to occur on a friend's installation using the same JBoss version and configuration.

      Has anyone got a clue as to why this might be happening?
      Many thanks in advance.