Hi, How to invalidate the session when the user clicks back button on the browser.I know HttpSession.invalidate() method is there.But how to invoke that method when the user clicks back button of the browser.
Why do you want to invalidate a session on the click of back button?
I hope you have a button or link in your web-app that the user has to press when he wants to logout. Track this action to the server side and call invalidate() explicitly. You would not have to worry about the back button then.