Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Back button

 
                            
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your problem is already addressed in this post


 
Vinod Iyer
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I slightly differ rao raghu since this will disable all jsp cache which will be a over kill
 
Rao Raghu
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay ... some one can confirm if ragu's solution worked ??
 
Rao Raghu
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic