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.
I have no idea what to do with this CommandWrapper. Can You give me an example?
and where to write and use it...
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.