• Post Reply Bookmark Topic Watch Topic
  • New Topic

Strange Logout back button problem  RSS feed

Ram Jagarlamudi
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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...

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!