I set a cookie and then check if exist like this
if(isset($_COOKIE["fan"])) { //Do Nothing } else { $cookie = "yes"; $expire=time()+60*60*24*30; setcookie("fan", $cookie, $expire); include_once("../inc/functions.php"); echo fan_page(); } When I test on my local machine, it works, but when i upload to production server, it doesn't work.
What am I doing wrong?
Thanks In Advance!
Marc