setcookie and IIS

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nefus
Forum Newbie
Posts: 16
Joined: Tue Mar 04, 2003 12:04 pm

setcookie and IIS

Post 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
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post 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');
nefus
Forum Newbie
Posts: 16
Joined: Tue Mar 04, 2003 12:04 pm

cookie woes

Post 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.
nefus
Forum Newbie
Posts: 16
Joined: Tue Mar 04, 2003 12:04 pm

iis cookie issue

Post by nefus »

This must be a tough one. I typically get really amazing responses fast here. Don't let me down guys! :)
Post Reply