Date: 02/28/01
- Previous message: Daniel Naber: "[phplib-dev] cross site scripting attack"
- Maybe in reply to: Daniel Naber: "[phplib-dev] possible solution for "data missing" error?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The way I avoid the "Data missing" error is I post forms to a script that
processes the form data and then rather than output any content it redirects
to a different page for actual output. This way no content is ever a
"direct" result of a post, and the browser doesn't ever have to worry about
reposting form data to display a page when someone hits the back button.
----Original Message Follows----
From: Daniel Naber <daniel.naber <email protected>>
To: phplib-dev <email protected>
Subject: [phplib-dev] possible solution for "data missing" error?
Date: Wed, 28 Feb 2001 13:49:02 +0100
Hi,
I wonder if this is a valid solution to the "Data missing" error that
appears when $allowcache is set to "private" and the user presses his back
button to go back to a page that was the result of a POST:
case "private":
$mod_gmt = gmdate("D, d M Y H:i:s", getlastmod()) . " GMT";
header("Last-Modified: " . $mod_gmt);
# dnaber, 2001-02-28, prevent "Data missing" error:
if( getenv("REQUEST_METHOD") == "GET" ) {
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: private");
header("Cache-Control: max-age=" . $this->allowcache_expire * 60);
header("Cache-Control: pre-check=" . $this->allowcache_expire * 60);
}
break;
My idea is that proxy caches should not cache POST queries by default.
Does anybody know if that's really the case?
Regards
Daniel
-- Daniel Naber, Paul-Gerhardt-Str. 2, 33332 Guetersloh, Germany Tel. 05241-59371, Mobil 0170-4819674--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-dev-unsubscribe <email protected> For additional commands, e-mail: phplib-dev-help <email protected>
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-dev-unsubscribe <email protected> For additional commands, e-mail: phplib-dev-help <email protected>
- Previous message: Daniel Naber: "[phplib-dev] cross site scripting attack"
- Maybe in reply to: Daniel Naber: "[phplib-dev] possible solution for "data missing" error?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

