• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 329
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic