Browser is caching the previous pages, and when you click back button it is taking to previous cached page.You need to add Cache headers which does not allow browser to cache page.How about people who run both Firefox and Chrome, which are separate applications, on the same computer?What about shared IP connections on separate computers?You shouldn't be copypasting the same code over every single JSP page.You should be performing this job in a single place in a servlet filter.
Jasper Exception so here is tricky one how solve here . Others have helped you make progress on how to do this, but I want to ask what you are trying to do, really, and why you think this is a good idea? How about two or more windows in a Firefox or Chrome browser?Can I log into your application with my desktop computer and my i Pad? my requirement is that i am administrator and multiple users login through remote locations, i want to monitor the users so i want to keep access to show me list of active users and which i have done and also access to invalidate that particular this.session Id is conformed coming from jsp.I have also mention that i used http session Context's method get Session(String session ID) but which is depreciated.It is because the page is loaded from the browser cache , even if it goes to the previous page you can't send any request from the page loaded Update Check this How to clear browser cache using java Hope this helps!!In this case you have successfully expired your session.