Quote:
Originally Posted by Young
Thats a cosmetic way of doing it (which I had never thought of) but I'm going to be sending this links via email.
What I want to do is after a potential client visits a page. I don't want them to be able to go to that page again. Unless I send them a fresh link.
|
I suck at this, but:
<?php
// on page being hit
if(isset($_COOKIE["alreadyhere"]))
{
header("Location: /another/uri");
}
else
{
setcookie( "alreadyhere", 1, (time()*100000), $_SERVER["REQUEST_URI"] );
}
?>
-- or some shit. basically, store something of the URI they already visited, test and send somewhere else.
someone else has a more elegant solution that's bug-checked, so I'll just bump this for ya
