Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

issue with logout from struts app

 
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]
 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!