This content has been marked as final.
Show 4 replies
-
1. Re: how to logout? - problem with setWantSignOut
soshah Sep 19, 2006 7:22 AM (in response to adamzrk)Adam-
You need to call the setWantSignOut(true) in a CommandMapper for it to work.
I have noticed, it does not work once the request has made it inside the portlet.
Thanks
Sohil -
2. Re: how to logout? - problem with setWantSignOut
adamzrk Sep 19, 2006 8:50 AM (in response to adamzrk)I have no idea what to do with this CommandWrapper. Can You give me an example?
-
3. Re: how to logout? - problem with setWantSignOut
adamzrk Sep 19, 2006 8:50 AM (in response to adamzrk)and where to write and use it...
-
4. Re: how to logout? - problem with setWantSignOut
adamzrk Sep 19, 2006 8:52 AM (in response to adamzrk)Maybe some code will be helpfull:
JBossActionResponse actionResponse = (JBossActionResponse) response; actionResponse.signOut(); JBossActionRequest actionRequest = (JBossActionRequest) request; actionRequest.getPortletSession().invalidate(); request.getPortletSession().invalidate(); actionResponse.sendRedirect(url);
This code doesn't work.