• 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

Strange Logout back button problem

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I tried to create a struts app with login and logout. After logout it goes to login page again. When i use back button, it goes to the secure page that should not be browsable. What stumps me is that the page is not something fetched from server. i wrote code in the jsp to check for session variables etc and am invalidating session when logging out. The page that is being displayed is a static HTML page from what was displayed earlier. So no matter what code i wrote in the jsp, since the first time fetch is with session present and user info in the session set, the generated html at that time is what is being used when the back button is pressed! i tried all kinds of META tags, session checking code, redirecting code but nothing works. It is also not a browser specific thing. It does not work on multiple browsers. Can somebody help me please?

i also used struts config setting <controller nocache="true" /> but it has no effect. The root of the problem i see is that the page is not being refetched from server but a local copy is being used. Is there a way to solve this? Any help is appreciated...

Ram
 
You can thank my dental hygienist for my untimely aliveness. So tiny:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic