4 Replies Latest reply on Oct 16, 2002 10:12 AM by Lamouret

    getSession(false) never returns null

    Lamouret Newbie

      I'm using Jboss2.4.9 on Linux Debian

      When i called request.getSession(false) in a jsp files, it always returns not null, even if it's the first time i call a page on the server:

      A jsp file example :

      javax.servlet.http.HttpSession hs = request.getSession(false);
      if (hs==null) {%>
      hs is null
      <% } else { %>
      hs is not null
      <% } %>

      Could you tell me what's the trouble ?