tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Casper Wandahl Schmidt <>
Subject Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm
Date Tue, 19 Jun 2012 07:43:58 GMT

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.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message