View Single Post
Old 12-18-2007, 09:24 PM  
Young
Bland for life
 
Industry Role:
Join Date: Nov 2004
Posts: 10,468
Quote:
Originally Posted by psili View Post
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
thanks i can play around with that.

ill take anything else anyone can throw at me though.
__________________
★★★
Young is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote