How to handle back button issue after logging out from web application?
In detail..
If we log out from the application and again if we press back button from browser then it again redirects back to the page where we were before logging our..
By saying "Programatically", i mean to say that either back button of the browser should get disabled upon logging out or even if it not,then upon clicking back button,it should not redirect to the previous page.
When user clicks log-out button, clear authentication info where ever you may have (commonly cookies ?) and forward / re-direct user to the log in page. I guess you can also play a bit on the browser URL history.
If you use session objects, make sure you invalidate the session.
Also inside your JSP, add a snippet of code that checks whether the authentication object is still in session. If not, then redirect the user to the login.jsp page