5

I am using FORM authentication, together with Realm. I would like to know how can I log out.

The only solution so far is to close browser, but that's not acceptable from the usability standpoint.

1
  • Thanks for adding the solution in bold! Has probably (not tested yet but seems right) saved me from surfing the web for half an hour. Commented Feb 4, 2013 at 11:18

2 Answers 2

5

Most likely, invalidating the session (HttpSession's "invalidate()" command) will log out the user -- when you close the browser, you're doing the equivalent.

Sign up to request clarification or add additional context in comments.

Comments

0

Most forms of authentication use a cookie on the browser to track the session, so you only need to delete that cookie. The Firefox plugin Web Developer can give you a list of cookies for the current domain.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.