Bug #12540 Updated: setcookie doesn't work!
| From: | blueeye at mail dot blueeye dot idv dot tw | Date: | Tue, 11 Jun 2002 09:05:02 +0000 |
| Subject: | Bug #12540 Updated: setcookie doesn't work! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10085@lists.php.net to get a copy of this message | ||
ID: 12540
Updated by: blueeye@mail.blueeye.idv.tw
Reported By: blueeye@mail.blueeye.idv.tw
Status: Bogus
Bug Type: IIS related
Operating System: win2k
PHP Version: 4.0.6
New Comment:
Does anybody else find that SetCookie in IIS 5 doesn't work?
I can't believe that.
Please have a trial.
thank you.
Previous Comments:
------------------------------------------------------------------------
[2002-06-11 05:00:11] blueeye@mail.blueeye.idv.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.
------------------------------------------------------------------------
[2002-06-03 12:13:44] mfischer@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
------------------------------------------------------------------------
[2001-08-03 10:49:47] blueeye@mail.blueeye.idv.tw
according to the post #9802, I think setcookie function
can't work fine in IIS5 + win2k.
this may be IIS5 bug!
but I hope php dev team or IIS can fix this.
I used apache + (freebsd/dec/win2k) before, setcookie works fine. but
IIS5 ....
------------------------------------------------------------------------
[2001-08-03 10:26:36] blueeye@mail.blueeye.idv.tw
oh, I read some post in bug reporting. I found my case and cookie test
pages are familiar like post #12481. and my 'big' project which want to
migrate to IIS is the same too.
test page like this
1) test1.php
<? setcookie('test1', 'teststring');
header('location: test2.php');
exit;
?>
2) test2.php
<? echo "test2 = $test2"; ?>
------------------------------------------------------------------------
[2001-08-03 10:15:05] blueeye@mail.blueeye.idv.tw
yes, I can see set-cookie statment in html header.
(it seems reasonable)
but no cookie saved. (I check this by many ways,
even no related cookie saved in cookie directory)
I discribe my install action by detail.
I installed IIS, and unzipped php-4.0.6-win32.zip into some directory.
I did some config: added exetend filename '.php' and executive file
'c:\path\php.exe'.
I renamed php.ini-dest to php.ini
(only add zend optimizer config into php.ini, but it didn't matter)
I copyed php.ini into c:\winnt
restart IIS of course.
all php pages are works perfectly without setcookie function.
I tried some of my coworkers' computer (win2k+iis), but all the same.
thank you again. if my situation is a weird case, and makes you
impatient, please don't blame on me and stop this
post! otherwise, I would like you to help me. thanks.
------------------------------------------------------------------------
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