Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 2229
    
    7

Did you correctly destroy the session in your logout page?


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

Joined: Aug 11, 2012
Posts: 370
    
    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
 
Similar Threads
Logout problem
issue with logout from struts app
Again back button wiht logout link
Disable browser back button and refresh in jsp page
upon click of back button, go to logout page