wood burning stoves 2.0*
The moose likes Security and the fly likes How to disable web browser history and back buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "How to disable web browser history and back buttons" Watch "How to disable web browser history and back buttons" New topic
Author

How to disable web browser history and back buttons

bob morkos
Ranch Hand

Joined: Sep 06, 2001
Posts: 104
I have web site that goes through different enrollment process and I want to make sure that the client does not click on the browser back button. The following code does not work:


response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setDateHeader("Expires", 0);
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "post-check=0,pre-check=0");


Could anyone help and also how do I clear the browser history looking for server side code. Thanks.
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
There are many such codes in the net. Just google for "disable back button you 'll get this.
[ July 18, 2005: Message edited by: Srinivasa Raghavan ]

Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
 
 
subject: How to disable web browser history and back buttons