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?
The documentation says:
You cannot destroy the session and create a session on the same request, as creating a new session involves sending session cookies back.sending session cookies back.
I thought cflocation to the main page already qualifies as a different request, is it not?