How do I redirect a user to different pages depending on if a cookie is found
or not? For example if I use the code below to check for a cookie, how do I
redirect them to a certain URL instead of displaying a text.
<?php
if(isset([COLOR=red]$_COOKIE[‘lastVisit’][/COLOR]))
$visit = [COLOR=red]$_COOKIE[‘lastVisit’][/COLOR];
else
echo “Welcome!”;
echo "Your last visit was - ". $visit;
?>