#12540 [Com]: setcookie doesn't work!

From: Date: Tue, 20 May 2003 13:36:04 +0000
Subject: #12540 [Com]: setcookie doesn't work!
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40040@lists.php.net to get a copy of this message
ID: 12540 Comment by: john dot g at envent dot co dot za Reported By: blueeye at mail dot blueeye dot idv dot tw Status: Bogus Bug Type: IIS related Operating System: win2k PHP Version: 4.0.6 New Comment: Never mind... <sigh!> found the answer: http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q176/1/13.ASP&NoWebContent=1 Previous Comments: ------------------------------------------------------------------------ [2003-05-20 07:26:22] john dot g at envent dot co dot za I have the same problem - also running on IIS 5.0 on a Win2k box - if I call setcookie () and then header ("Location: ..."), the cookie is not returned. Any ideas? ------------------------------------------------------------------------ [2002-07-12 05:58:41] moby dot lin at msa dot hinet dot net my platform: w2k server + php4.2.1 ------------------------------------------------------------------------ [2002-07-12 05:57:53] moby dot lin at msa dot hinet dot net i have the same problem. <?//this doesn't work. setcookie("aa","bb",0); header("Location: test2.php"); ?> <?//this work fine. setcookie("aa","bb",0); echo "xxxxxxx"; ?> ------------------------------------------------------------------------ [2002-06-11 05:05:02] blueeye at mail dot blueeye dot idv dot tw Does anybody else find that SetCookie in IIS 5 doesn't work? I can't believe that. Please have a trial. thank you. ------------------------------------------------------------------------ [2002-06-11 05:00:11] blueeye at mail dot blueeye dot idv dot tw I have to say sorry again. Nowaday I use PHP 4.2.1 + Apache 1.3.24 in win2000. SetCookie fuction works fine. BUT under PHP 4.2.1 + IIS 5 in win2000. "Everything" is good but SetCookie.... I mean seriously "Everything" but SetCookie. Of course, I used some PCs to test all the cases. thanks for your comments. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/12540 -- Edit this bug report at http://bugs.php.net/?id=12540&edit=1

« previous php.bugs (#40040) next »