redirect from index page
Hi
I'm trying to setup a redirect based on a 5 day cookie life. I've searched and cannot find a solution recipe
so over the past weeks I've been working on it.
I now have on my index.php page above the header
<?php
if( !(isset($_COOKIE["splashCookie"])) ) {
header("Location: http://www.ashburyblinds.co.uk/splash.php");
}
?>
on the page splash.php I have
<?php
if ("" == "") {
setcookie("splashCookie", "visited", time()+(60*60*24*5), "/", "", 0);
}
?>
This does not seem to work, any ideas why?
thanks
Ian