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?
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
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
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 :
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
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
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