wood burning stoves 2.0*
The moose likes Struts and the fly likes Strange Logout back button problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Strange Logout back button problem" Watch "Strange Logout back button problem" New topic
Author

Strange Logout back button problem

Ram Jagarlamudi
Greenhorn

Joined: Apr 25, 2008
Posts: 4
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
 
 
subject: Strange Logout back button problem