Preventing a page from caching

From: Date: Thu, 22 May 2003 18:33:26 +0000
Subject: Preventing a page from caching
Groups: php.general 
Request: Send a blank email to php-general+get-148608@lists.php.net to get a copy of this message
Hi, I've inserted the following code at the top of my web page (I am also using sessions) which contains a form: session_cache_limiter('Cache-control: private'); session_start(); header('Pragma: no-cache'); header("Cache-Control: no-store, no-cache, must-revalidate"); For Internet Explorer, it works fine as I get the message: "Warning: Page has expired" which is OK as the user can just click the RELOAD browser button. However, it doesn't work for Netscape or Opera. I've heard that Opera always caches so I'm out of luck but is there a way I can fix it for Netscape 6.x or 7.x ? Thanks, Don --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003

« previous php.general (#148608) next »