2 Replies Latest reply on Nov 13, 2003 7:03 AM by mozheyko_d

    LogoutServlet

    mozheyko_d

      How to write such Servlet by which call user-principal was nulled and user was need authentication again ?

        • 1. Re: LogoutServlet
          kryptontri

          You probably want to invalidate the session and forward/redirect the flow/user to a page of your choice, so something like .. ..

          // clean up ...

          session.invalidate();

          // something like
          // servlet.getRequestDispatcher().forward("some page"); ... something like that, look at the servlet api javadocs
          //
          //

          • 2. Re: LogoutServlet
            mozheyko_d

            Thank you