[JBoss-user] [Security JAAS/JBoss] - Re: logout when having used j_security_check

2004-05-28 Thread anbenham
Hi, I would like to know too if this is the right way to do that.# I call that method just after the session.is invalidated ( I use a session listner). Is it OK like that? Do I have to empty the subject? Is it garateed that the user is logged out in the ejb-container AND the web-container?

[JBoss-user] [Security JAAS/JBoss] - Re: logout when having used j_security_check

2004-05-26 Thread tosenthu
Hai Is this a correct way to do, cos i do have the same probs, and if its valid to do this can u please tell me where to keep this code, means in which class, and how this method will be called. and also tell me the confiuration details that i have to make this code to work. Thanks in

[JBoss-user] [Security JAAS/JBoss] - Re: logout when having used j_security_check

2004-05-14 Thread anbenham
Hi here is the code. | public void logout() throws Exception { | if (getSubject() == null) | throw new Exception(); | Set principals = getSubject().getPrincipals(); | if (principals.size() 0) { | Iterator i

[JBoss-user] [Security JAAS/JBoss] - Re: logout when having used j_security_check

2004-05-13 Thread anbenham
Hi, session .invalidate() is not sufficient under JBoss. I have written a logout method that empties the subject from its principals then flushes the aiuthentication cache of JBoss. Are there any other methods? View the original post :

[JBoss-user] [Security JAAS/JBoss] - Re: logout when having used j_security_check

2004-05-13 Thread mwallner
anbenham, could you please post the source code of your method? Thanks, - markus View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3834751#3834751 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3834751

[JBoss-user] [Security JAAS/JBoss] - Re: logout when having used j_security_check

2004-05-13 Thread formenti
I like to see this code too! :) Gio View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3834759#3834759 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3834759 --- This SF.Net

[JBoss-user] [Security JAAS/JBoss] - Re: logout when having used j_security_check

2004-05-11 Thread tonic48
if you are using JSP , try % session.invalidate(); % View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3834459#3834459 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3834459