Whoops, probably not exactly what you're looking for but:
to generate http headers, use:
header("blah_blah header info");
before any html output.
eg. this example from the manuals:
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
if your server can send headers, then this should do it i think (for cookies, redirects, page types etc.)
shrug,
Steve