I need some help here. I'm trying to set a cookie but it won't do it. Here is my code:
setcookie("username",$username,time()+14400,"/","bige.phpwebhosting.com/htmlhelp",0);
The page loads OK but the cookie isn't sent.
That's because "bige.phpwebhosting.com/htmlhelp" is not a valid domain name. If you really <i>do</i> want to restrict the cookie to 'htmlhelp' (and it's a directory!) then move that to the path argument:
setcookie('username',$username,time()+14400,'/htmlhelp', 'bige.phpwebhosting.com',0);
Thanks!