I have a program trigger an action in my JSF 2.0 application.
In particular, the program tries to GET a JSF page, gets redirected to the Spring Security standard log in, does log in, and then GET the original JSF page again, passing some parameters in the URL. Unfortunately, said program does not log out. How can I log out anybody going to this particular page, but first send them said page?
I tried
but that sends the session expired page instead of the actual page to the program.Code:FacesContext fc = FacesContext.getCurrentInstance(); ExternalContext extContext = fc.getExternalContext(); HttpSession session (HttpSession) extContext.getSession(false); fc.renderResponse(); fc.responseComplete(); session.invalidate();
Any ideas?
Thanks,
Robert


Reply With Quote