note 69723 deleted from function.header by bobby
| From: | bobby@php.net | Date: | Mon, 18 Sep 2006 02:16:24 +0000 |
| Subject: | note 69723 deleted from function.header by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-117278@lists.php.net to get a copy of this message | ||
Note Submitter: planetwebhost dot com
----
This seems to work well for me to prevent double posting on my web application that comes from the
refresh and back buttons.
if ( $_POST ){
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
header('Pragma: no-cache');
}