I have a login page which takes in a username and password and forwards to a welcome.jsp if login is successful.
Once I logout, I invalidate my session. Unfortunately, if i click the back button, the welcome.jsp page comes back again. This is incorrect.
How do i stop the welcome.jsp from coming back. Instead, another page should load saying that the session has expired.
I went through a few forums in which i learnt that the browser cannot be controlled and that meta-tags have to be used to prevent the browser to cache data. I tried using the following tag to disable caching but it did not work: