Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to log out user from web site using FORM authentication?

Tags:

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.

like image 363
Sergio del Amo Avatar asked Jun 22 '09 14:06

Sergio del Amo


1 Answers

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

like image 93
Jacob Mattison Avatar answered Nov 14 '22 13:11

Jacob Mattison