<?php
if($mycookie==""){
setcookie("mycookie", "set1", time()+86400, "/");
header ("Location:
http://url1_ ");
}
elseif($mycookie=="set1")
{
setcookie("mycookie", "set2", time()+86400, "/");
header ("Location:
http://url2_ ");
}
elseif($mycookie=="set2")
{
setcookie("mycookie", "set3", time()+86400, "/");
header ("Location:
http://url3_ ");
}
elseif($mycookie=="set3")
{
setcookie("mycookie", "set1", time()+86400, "/");
header ("Location:
http://url1_ ");
}
else
{
setcookie("mycookie", "set1", time()+86400, "/");
header ("Location:
http://url1_ ");
}
?>