Hi
I am developing a web application When User click log out button
I used below code
<action-state id="performLogout">
<evaluate expression="logoutAction.performLogout(flowRequest Context)" />
<transition on="success" to="viewLogin" />
</action-state>
public String performLogout(RequestContext context) {
((HttpServletRequest)context.getExternalContext(). getNativeRequest()).getSession().invalidate();
return RESULT_SUCCESS;
}
to kill session object associated with request.
But when use session.invalidate(). exception throws and it will not go to log in page.
Is there any other way to invalidate session in Web Flow..
Or Does any body suggest some other approach?
R


Reply With Quote
