The moose likes JSP and the fly likes back button after logout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "back button after logout" Watch "back button after logout" New topic

back button after logout

srinivas mallabathula

Joined: Apr 12, 2011
Posts: 9
I am developing one application using jsp and spring.In this application,After click the logout button,it is redirected to login page.Then If we click on backbutton(or backspace), it is going to previous page.But is has to stay current page only.How to do this?

Thanks in advance
K. Tsang

Joined: Sep 13, 2007
Posts: 3132

Did you correctly destroy the session in your logout page?

K. Tsang JavaRanch SCJP5 SCJD OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
R. Jain
Ranch Hand

Joined: Aug 11, 2012
Posts: 375

You need to set no-cache headers for your page..
I agree. Here's the link:
subject: back button after logout
It's not a secret anymore!