Help
Im having problems with this cookie script
<?
if(isset($username)){setcookie("username",$username,time()+129600);}
if(isset($_COOKIE["username"])){$username=$_COOKIE["username"];}
?>
The program uses this cookie to recognise a user, when the user clicks to join, the referrers name is shown in the join box correctly, however when the browser is closed then reopened, and the user returns to the join page, the referrers name is missing.
I thought the ()+129600 set the length of time the cookie should set for, but its not working.
Please help so that the program remembers the user for that length of time.
Thanks