Wrox Home  
Search P2P Archive for: Go

  Return to Index  

servlets thread: How to clear the browser history from the servlet


Message #1 by "Lakshmi" <lbalasubramanyam@y...> on Thu, 7 Nov 2002 18:57:50
Hi to all,
if you want to disable the back button write this code
in the servet..
<%
    response.setHeader("Cache-Control","no-cache");  
// HTTP 1.1
    response.setHeader("Pragma","no-cache") ;        
// HTTP 1.0
    response.setDateHeader ("Expires", 0);           
// PREVENTS CACHING AT THE PROXY SERVER
%><%
    response.setHeader("Cache-Control","no-cache");  
// HTTP 1.1
    response.setHeader("Pragma","no-cache") ;        
// HTTP 1.0
    response.setDateHeader ("Expires", 0);           
// PREVENTS CACHING AT THE PROXY SERVER
%>

so the browse wont store the previous information..
so when back buttion pressed..no will be in catchy

bye
diwakar


__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

  Return to Index