Announcement Announcement Module
Collapse
No announcement yet.
Session.invalidate() in Web FLow Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Session.invalidate() in Web FLow

    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

  • #2
    Hi

    Please use spring security for login-logout management.

    Thanks
    George

    Comment


    • #3
      Originally posted by geowalrus123 View Post
      Hi

      Please use spring security for login-logout management.

      Thanks
      George
      I dont know Security, I have to do something with Web Flow only
      I dont have time to read Security and solve problem
      plz help

      Thanks
      Mannu

      Comment

      Working...
      X