Den 19-06-2012 08:41, javed Ansari skrev:
Hi,

But how to call the logout on my LoginModule? That is my actual question. I
do not have a LoginModule object with me. LoginModule is called by tomcat
himself when we use Form Based Authentication.
Read what EJP said again. When you call Session.invalidate() or HttpServletRequest.logout() it should call logout on LoginModule for you!

Med venlig hilsen/Kind regards
Casper W. Schmidt


=============================================================
Javed

Just call Session.invalidate() or HttpServletRequest.logout(). The JAASRealm
will do the rest, and call logout() on your LoginModule. Note that you can't
assume it is the same instance of your login module, that's what all the
shared state is for.

EJP


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to