Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

issue with logout from struts app

 
viji jeyabalan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have an application with logout option, when i click on that it gets logged out, but when i click on back option in the browser then the previous page is appearing which is not suppose to...i have implemented session invalidate and all...still getting the page back, this is happening because of the login.do when back button got hit, how to prevent the page from redirected to the login.do page?

[Edit: removed email address on request]
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
viji jeyabalan wrote:i have an application with logout option, when i click on that it gets logged out, but when i click on back option in the browser then the previous page is appearing which is not suppose to...i have implemented session invalidate and all...still getting the page back, this is happening because of the login.do when back button got hit, how to prevent the page from redirected to the login.do page? contact me to the mail id rohini8204@yahoo.com


Pay more attention when posting your query. As per my understanding after logout action you have to redirect to login page. Now the user clicking on back button you getting previous page this is happening because of browser cache, Just clear browser cache in logout Action.
 
viji jeyabalan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi mohan, how do i implement that?
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
refer the following link. Clear Browser chache.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic