View Single Post
Old 12-18-2007, 09:23 PM  
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
Quote:
Originally Posted by Young View Post
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
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote