2 Replies Latest reply on Oct 14, 2004 6:52 AM by lviz

    request.getSession()  somtime return null

    gfzhang

      I use JBoss 3.2.5. This issue also met in the early version of JBoss.

      How to solve it?

      Thank you very much.

        • 1. Re: request.getSession()  somtime return null
          gfzhang

          I also find that for a authenticated user, request.isUserInRole() somtime reutrn false.

          we use this feature to control the look and feel of our application. This issue make our application unstable to user.

          Is there any work-arround way to solve the issue?

          Thank you very much!

          • 2. Re: request.getSession()  somtime return null
            lviz

            hi
            a call to request.getSession() returns ...:

            Returns the current HttpSession associated with this request or, if there is NO current session returns null.

            a call to request.getSession(true) returns ...:

            Returns the current HttpSession associated with this request or, if there is no current session and create is "true", returns a new session.

            is that what you are lookung for :)

            cheers
            L