Thread: No back button
View Single Post
Old 07-01-2007, 5:25 PM   #8
Lee Marsh
 
Lee Marsh's Avatar
 
Posts: n/a
My Photos: ()

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default No back button

Hmm, okay, I said screw my ISP and ran my server again just long enough to
see how well this works, becuase I like this idea. It's resourceful and it
doesn't require me to register any more variables with the session, but
there's one problem: I can't seem to get it to work right, and I have no
idea why. I put all the header commands in an include file and put it at the
very beginning of every page I wanted to protect in this manner. Here is the
contents of this file:
<?php

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0, false");
header("Pragma: no-cache");
?>

What might be wrong with this picture?


  Reply With Quote