Some one had posted this in the forum before. Try it.

Set these headers:
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setHeader("Expires", "-1");

And put this in the <head> tag of your page
<meta http-equiv="Pragma" content="no-cache">

-----Original Message-----
From: Mahesh Kuklani [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 20, 2000 3:46 PM
To: [EMAIL PROTECTED]
Subject: Expiring page


Hi all,
   How do i expire a page i.e. if the user clicks on back button he
shouldn't be able to see anything. I am using

<html>
<head>
<META http-equiv="expires" content="Tue, 20 Aug 1996 14:25:27 GMT">
</head>

in jsp but it's not working.

Thanks in advance.

Mahesh.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to