I'm having some oddball issue with setcookie and IIS. I have tried even running a single line script just to test the cookie and it just doesn't work at all on one server, but does 100% on another. Both of them are IIS.
setcookie("name",$_user,time()+(60*60*24*7),'/','www.link.com');
Is there something with php4 and IIS that makes this foobar on occasion?
Thanks
setcookie and IIS
Moderator: General Moderators
this maybe a dumb question...but did you change the domain for each server?? ie
setcookie("name",$_user,time()+(60*60*24*7),'/','www.link.com');
and
setcookie("name",$_user,time()+(60*60*24*7),'/','www.otherserver.com');
setcookie("name",$_user,time()+(60*60*24*7),'/','www.link.com');
and
setcookie("name",$_user,time()+(60*60*24*7),'/','www.otherserver.com');
cookie woes
You betcha!
I should mention the IIS server is registered as 4 different dns names on the dns server.... although I doubt that means a whole lot.
iis cookie issue
This must be a tough one. I typically get really amazing responses fast here. Don't let me down guys! 