";
}
}
} else {
// Cookie is set and display cookie data
$cookie_info = explode("-", $_COOKIE['cookie_info']); // Extract the data
$name = $cookie_info[0];
$color = $cookie_info[1];
echo "Welcome back $name. You like the color $color";
echo "
Click here to destroy the cookie";
}
?>
Enter your name and the web site will remember you next time.