Hi Can anyone help with this problem
My site uses cookies to remember who referrered them to the site.
The cookie looks like this
<?php
if(isset($_COOKIE["user_referal"]) and (strlen(trim($_COKKIE["user_referal"])) > 0)){$username=$_COOKIE["user_referal"];}
if(isset($username)){setcookie("user_referal",$username,time()+129600);}
else { $username="admin"; }
?>
the problem is that the cookie works only temporarily.
If i go back to the site say 4 hours later, then the cookie doesnt show the referrers name any more.
Where have I gone wrong in the script ?