• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

How to disabel the back and forward after session is invalidated

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hiiii...I have one logout.jsp page which logouts a user from a registration system application.I have used beans in session scope .....my main welcome page is just menus with greeting the user....whenever user clicks logout button i have put session.invalidate() in the logout.jsp.....but from the response of logout.jsp if user uses browser navigator(BACK,Forward)it will take the user again inside the welcome .jsp page which comes whenever user logs in....


login.jsp--->welcome.jsp(with diff menus and greeting to user,one of them logout)-->logout.jsp-->responseLogout.jsp(successfully logged out .....click here to login again)

if user clicks back after responseLogout.jsp it takes the user to welcome.jsp.....it should invalidate the session...Thanks in Advance....
[ April 23, 2005: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Bhavik

There is a nice article on this topic, here.
http://www.javaworld.com/javaworld/jw-09-2004/jw-0927-logout.html
 
Bhavik Patel
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks i will follow the link...i guesss that will work .....
 
He does not suffer fools gladly. But this tiny ad does:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic