Results 1 to 3 of 3

Thread: Session.invalidate() in Web FLow

  1. #1
    Join Date
    Aug 2009
    Posts
    6

    Thumbs up 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. #2

    Default

    Hi

    Please use spring security for login-logout management.

    Thanks
    George

  3. #3
    Join Date
    Aug 2009
    Posts
    6

    Default

    Quote 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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •