I have created a script
Code: Select all
<?php
$inTwoMonths = 60 * 60 * 24 * 60 + time();
setcookie('lastVisit', date("G:i - m/d/y"), $inTwoMonths);
if (isset($_COOKIE['lastvisit']))
$visit=$_COOKIE['lastvisit'];
else
echo "no cookie yet, come back later </br>";
?>except it will only give me no cookie, no matter how many times i close and reopen the browser to this script.
Thank you!