I am developing a website using struts2.
The website has login and logout functionalities.
After i logout i clear and invalidate my sessions, but if i go back to the previous page (with the browser back button), i am still able to see the previously logged in pages.
For example: I have a 'userName' session field in each page. On login the userName is set. On logout as the session is invalidated, the userName is set to null. But when i go to the previous page, i still see the userName set to the logged in value.
How do i prevent this and cause the page to be sent from the server. Thank you in advance