1
2
3
4
5
6
7
8
<?php
if(isset($_COOKIE['div'])){
echo "<div>I can tell you've been here before</div>";
} else {
setcookie('div', true, 5184000 + time()); //hold fo 2 months
echo "<div>Its your first time being here</div>";
}
?>