Your question is not clear,may be from whatever i got after reading I think this can be done using some method like invalidate() in HttpSesion Class or try using removeAttribute() or removeValue().
Joined: Nov 02, 1999
Here is what I think...You dont ever know when the browsers back button is pressed so I dont think you can accomplish your goal that way. You may want to track the users navigation of the site in the session and once he visits a page you can check the session to see if he has visited it. If he has then you can do whatever it is you want to do (invalidate the session). best of luck paul
Joined: Nov 07, 2000
your question is not clear as far as i know u can use the method HttpSession.invalidate() to invalidate a session else use HttpSession.removeValue(String st) - to remove objects bound to a specified name