Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

back button after logout

 
srinivas mallabathula
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3504
15
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you correctly destroy the session in your logout page?
 
R. Jain
Ranch Hand
Posts: 375
1
Java Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to set no-cache headers for your page..
See JSP FAQ.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic