aspose file tools*
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
Author

back button after logout

srinivas mallabathula
Greenhorn

Joined: Apr 12, 2011
Posts: 7
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
Bartender

Joined: Sep 13, 2007
Posts: 2532
    
    8

Did you correctly destroy the session in your logout page?


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5 OCPBCD5
R. Jain
Ranch Hand

Joined: Aug 11, 2012
Posts: 375
    
    1

You need to set no-cache headers for your page..
See JSP FAQ.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: back button after logout