1 Reply Latest reply on Jun 30, 2004 11:29 AM by stueccles

    newbie question

    lords_diakonos Newbie

      I have a war deployed to Jboss using form authentication. I am authenticating to active directory witrh the browseldap module. What I need to know is how do I end the session??
      In other words what is the code for a log out button?
      thank you in advance. I know this is probally a stupid question

        • 1. Re: newbie question
          stueccles Newbie

          just drop the session dude ;o)

          hreq.getSession().invalidate();

          ok thats not really the best way to do it but it would work from the user prespective although the principals would be stored in the cache if they relogged in so you wouldnt get any updated information (roles for instance)

          the correct procedure should be to get
          the login context and do
          lc.logout();