2 Replies Latest reply on Apr 24, 2002 10:32 PM by craigday

    HttpSession trouble

    samsonov

      Hi folks,
      I'm store my object in the HttpSession by setting of the attribute. When I go to another page on my site I can't get my attribute. I'm trying check for HttpSeesion isNew() and it always return true. Also I set SessionListener and situation is same.
      I'm using jboss-3.0.0RC1_tomcat-4.0.3. This problem in the JBoss-2.4.5_Tomcat-4.0.3 is too. But in the JBoss-2.4.4_Tomcat-4.0.1 working with HttpSession is right.
      Any idea? Andrew

        • 1. Re: HttpSession trouble
          achugh

          I'm downloaded jboss-3.0.0RC1_tomcat-4.0.3 as well - and I get the same behaviour. I set a session attribute in servlet - then forward/redirect to a jsp - and the value of the attribute is null when accessed in the jsp! I get different values for session.getId() when invoked from servlet and then later from the jsp. My session-timeout is set to 60min - default for tomcat is 30min I believe.

          Furthrermore, we never got this error when using previous beta-release with tomcat-4.0.2.

          Is this a bug?
          Regards,
          Avinash.

          • 2. Re: HttpSession trouble
            craigday

            answered in the following thread. its also fixed in latest CVS branches HEAD and Branch_3_0

            http://jboss.org/forums/thread.jsp?forum=50&thread=13327

            cheers
            craig