Invalidating session in jsp Free sexy xxx webcam chatsite
Hello Everyone, I am not able to invalidate my session. I am using: Product Version: Net Beans IDE 6.0.1 (Build 200801291616).
Java: 1.5.0_15; Java Hot Spot(TM) Client VM 1.5.0_15-b04.
It will still be accessible in the current response, but it will not be there anymore in the next request.
I was wondering how to invalidate session in JSP and servlets. When a user hits the log out button it directs them to that page, which in turn checks for an active session and if it finds one, calls session.invalidate() then redirects the user back to the home page (or wherever you would like). Take a look at this thread, it has some answers that you are looking for. t=146975 I use a servlet for the sole purpose of log outs.So, all the servlets and JSP pages in a Web application have to agree on the cases for which invalidate may be called.• Log the user out and delete all sessions belonging to him or her.
session data, but still keep the session so that some other control run, which seems to be using the session, does not crash. The second control run will not find any session data, as you have completely cleared out the session.