I need help on session handling using struts.
Steps i am following:
1) Deploy the war in some Webserver.
2) Hit
http://hostname:port/App/3) Username / Password : abc / abc
4) After successful login you can see a jsp with Login Successful
message and a link (Logout) to logout.
5) Click on Logout link. The user logs out successfully.
6) You can find link to re-login, which takes you to login screen.
Problem:
1) Repeat steps 1, 2,3,4,5.
2) Click browsers back button on the Logout Screen.
3) Takes you to a screen saying “Webpage has expiredâ€. (This happens
because I have removed browsers cache in JSP’s)
4) Do refresh using F5.
5) The control takes to the previous screen instead of saying login
expired.
I am using session.invalidate() when the user clicks Logout.
Please help me in moving forward regarding this issue.