In a login.jsp page, I logged in by a user. Now by pressing the back button we can move to the login page also. If I log in this time by different user then old session getting reflected. How can I invalidate a session when we move to the login page by using the back button?
Check if there is already existing session with logged user and then invalidate it.
Any Suggestions on How to approach this and a solution is highly appreciated