When do you call getPageContext().getSession().invalidate()?
I tried calling that at the logout page, then cflocation it back to the main page, and it throws exception.
How to assign a new session right after?
Home / DeveloperSection / Forums / How to use invalidate session?
When do you call getPageContext().getSession().invalidate()?
I tried calling that at the logout page, then cflocation it back to the main page, and it throws exception.
How to assign a new session right after?
Anonymous User
06-Oct-2014getPageContext().getSession().invalidate() will invalidate the session, subsequent request with that sessionID will get an error trying to access the Session scope but the memory will not be reclaimed until the actual session timeout.
What you can do is session.setMaxInactiveInterval(int) set it to very a low number in ms so it expires right away and release the memory. Then do a cflocation and for safe mesure use addToken="no"