IntelliJ Java IDE
The moose likes Struts and the fly likes Struts back button problem after logging out from an application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "Struts back button problem after logging out from an application" Watch "Struts back button problem after logging out from an application" New topic
Author

Struts back button problem after logging out from an application

Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 89

Hi,

I have created a struts application where in, I have a login page, home page some link on the home page and a logout link.Everything else is working properly except for whenever i have logged out from the application, and i hit the browser's back button i am redirected to my home page. I tried adding the following code in the header section of my jsps, but it doesn't work



How to overcome this problem?

Thanks in advance.


Regards,
Deepak

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8457

Are you using sessions to maintain the state? Are you invalidating the session after logout?


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 89

Yes I am using session to maintain the state also i am invalidating the session on logout.
 
 
subject: Struts back button problem after logging out from an application
 
Threads others viewed
Logout problem
browser is not cached
problem in page navigation
Re-login issue after click on browsers back button and press refresh
roblem when caching with Internet Explorer 6.0
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture