aspose file tools
The moose likes JSP and the fly likes back button after logout Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply 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
Ranch Hand

Joined: Sep 13, 2007
Posts: 1222

Did you correctly destroy the session in your logout page?


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

Joined: Aug 11, 2012
Posts: 276

You need to set no-cache headers for your page..
See JSP FAQ.


OCPJP
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: back button after logout
 
Similar Threads
Again back button wiht logout link
upon click of back button, go to logout page
issue with logout from struts app
Logout problem
Disable browser back button and refresh in jsp page