Skip to main content
Inspiring
June 20, 2011
Question

Ending a J2EE session on the server

  • June 20, 2011
  • 1 reply
  • 765 views

When using J2EE Session Management in Cold Fusion 9.0.1, does the function getPageContext().getSession().invalidate() completely end the current session on the server?The documentation is ambiguous. I want to be absolutely certain to prevent a session being hijacked or reused.

    This topic has been closed for replies.

    1 reply

    12Robots
    Participating Frequently
    June 20, 2011

    That's the only way it works.  It will not end CF Sessions. Only JEE Sessions, and yes, it ends the session. If you try to revist with those same session tokens you will get an "invalid Session" error.

    mkane1Author
    Inspiring
    June 20, 2011

    Thanks, 12Robots. I was reasonably sure, but the documentation seemed ambiguous enough for me to want to verify. Presumably, one of the Adobe team would jump in if this is not correct!

    Owainnorth
    Inspiring
    June 20, 2011

    Presumably, one of the Adobe team would jump in if this is not correct!

    Afraid not, Adobe don't really have an active presence on these forums, somewhat oddly.