Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Re-login issue after click on browsers back button and press refresh

 
pink yadav
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have an application developed in struts1.2. When i click on logout, it get me on login page and make session invalidated.
When i hit browsers back button it shows a message "This page has been expired" on IE. When i refresh that page it get me logged in.
I have used "no-cache" mechanism on each jsp page.

response.setHeader("pragma", "no-cache");
response.setHeader("cache-control", "no-cache");
response.setHeader("cache-control", "must-revalidate");
response.setHeader("cache-control", "no-store");
response.setHeader("expires", "0");

Help me out to resolve this issue...
 
Shankar Tanikella
Ranch Hand
Posts: 329
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there, this problem is discussed here more than couple of times. here & here are the resolved ones. Try out and see if it could help you.
To me personally, trying something at the browser level(possibility that client tweaks the browser) is not the elegant way of solving the issue. May you have a session listener/tracker to redirect the invalid user.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic