I am working on a JSF 2.1 application.
A user login successfully and arrives to home page. Then clicking on browser's back button, it redirects to login page and after that it is possible to navigate to home page again using browser's forward button.
Currently this is marked as a improper session management issue in a security audit as "It was possible to re-initiate the login session when we performed backward/forward refresh submission.".
How to fix this issue i.e logout the user when arriving to login page via URL / browser's back button?
Here user is logged in . but the case touched in the solution is when user is logged out.