Hi all
I'm trying to write my own custom login portlet.
The problem is that request.getPortletSession().invalidate(); does not seems to
work when a user logs out.
Here is the code:
public void processAction(ActionRequest request, ActionResponse response)
throws PortletException, PortletSecurityException, IOException
{
if (request.getParameter("op").equals("logout"))
{
request.getPortletSession().invalidate();
String home = PORTAL_HOME;
response.sendRedirect(home);
}
}
request.getRemoteUser is not null after a call to
request.getPortletSession().invalidate();
I'm logging in to JBoss Portal Realm with , in the login form.
If I log in via my custom login portlet, and logs out via default Jboss User
portlet everyting works as expected.
When the session times out everyting works as expected.
I have debugged the process via remote debugger, and a call to
request.getPortletSession().invalidate(); in my custom login portlet ends up in
org.jboss.portal.portlet.impl.PortletSessionImpl.invalidate(), so the
underlying HTTP session seems to be invalidated and the portletSession is
marked as invalid. (Exactly the same happens when I log out via JBoss User
portlet)
But the portletSession still lives on..
Any ideas?
regards
Jan Ole
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869529#3869529
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869529
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development