I implemented a sevlet filter in my application, and within the filter, if I find some specific url pattern, I will use request.getSession().invalidate() to logout and clear the session, then redirect to a login page.
session.invalidate();
session.setAttribute("hi", true);
response.sendRedirect("login.jsp");
but I found, after that I enter username and password, then submit the login form, the previous session seems not be completely cleared.
So is it possible to let me completely clear out the session and just like start a new IE instance ?(BTY, my code works in FF and Chrome).