Page 1 of 1

setcookie and IIS

Posted: Tue Mar 09, 2004 2:50 pm
by nefus
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

Posted: Tue Mar 09, 2004 3:06 pm
by PrObLeM
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');

cookie woes

Posted: Tue Mar 09, 2004 3:09 pm
by nefus
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

Posted: Wed Mar 10, 2004 10:57 am
by nefus
This must be a tough one. I typically get really amazing responses fast here. Don't let me down guys! :)