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

Back button

santosh billal
Greenhorn

Joined: Dec 15, 2006
Posts: 18
in my application .After loging out .if i press back button of browser
it is going back.i want to stop this .i does not want it to go back.
how can i do it
Vinod Iyer
Ranch Hand

Joined: Apr 13, 2006
Posts: 53
Invalidate/Kill the session on logout . Check if session is invalidated for every request if its invalidates or new session is created then forward to login/session expired page
Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
Your problem is already addressed in this post




RAGHU<br /> <br />"When the going gets tough, the tough get going"
Vinod Iyer
Ranch Hand

Joined: Apr 13, 2006
Posts: 53
I slightly differ rao raghu since this will disable all jsp cache which will be a over kill
Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
I meant to de-cache only those pages where you are invalidaing the session, not all the JSPs of the applications.
Vinod Iyer
Ranch Hand

Joined: Apr 13, 2006
Posts: 53
Okay ... some one can confirm if ragu's solution worked ??
Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
Originally posted by Vinod Iyer:
Invalidate/Kill the session on logout . Check if session is invalidated for every request if its invalidates or new session is created then forward to login/session expired page


even after you do this, the back button takes you to previous page.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Back button
 
Similar Threads
Page expired error when browser back button is hit
How to disable IE back button.
javascript for disable back button
Login Problem
browser back button