Here is the scenario. I try to make it undestandable as possible. This is a 100% servlet quesiton
1.I have a login screen. User logs in correct. Directs to another Servlet (Say UserInputData Servlet).
2.In this (UserInputData) servlet I have a "log out" link. If I click in this link the system will pop out a
another servlet (say EndMessage servlet). All it asks for is a confirmation. There are two buttons in
it(in EndMessage Servlet). They are - "Want to continue with work" and "Want to Quit". If the user
clicks on "Want to Quit" it re-directs to the login screen.
in the doPost() of EndMessage , I invalidate all session data.
3. So now the user is in the Log-In screen.
4. But On the address bar of the browser if I drop down the list, it has the history of Servlets loaded. For
example the UserInputData servlet (Which was the one that went into after the login) is also there. So if
I try to load it independently from selected from teh address bar list, it still loads with the old data. I have
coded that servlet (UserInputData) in such a way that if the user is not logged in, to pop-up a "User Error"
but although the user is logged out at this time, when I try to load the server (UserInputData) independently,
from the browser's adress list it still loads. But IF I CLICK THE REFRESH BUTTON ON THE BROWSER, it pops
the ERROR MESSAGE "User Error" I expect.
So the question is, How come even if I loaded the servlet from the address history, it still loads the servlet with the
invalidated information??? I was expecting to see popping the "User Error" because the user is logged out?
Please read this carefully. I tried best to explain the problem I have.