Bug #12481 Updated: Cookie cannot be set if there is no output for a page
| From: | sniper@php.net | Date: | Tue, 18 Jun 2002 22:38:33 +0000 |
| Subject: | Bug #12481 Updated: Cookie cannot be set if there is no output for a page | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-11239@lists.php.net to get a copy of this message | ||
ID: 12481
Updated by: sniper@php.net
Reported By: tcmleung@yahoo.com
-Status: Duplicate
+Status: Bogus
Bug Type: IIS related
Operating System: Window 2000 and IIS4
PHP Version: 4.0.6
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2001-11-11 12:23:33] sander@php.net
Dupe of #9802
------------------------------------------------------------------------
[2001-07-31 05:20:39] tcmleung@yahoo.com
Example
Below is code for test1.phtml
<?
setcookie("cokTest","test cookie",0,"/");
header("location:test2.phtml");
?>
End of test1.phtml
Below is code for test2.phtml
<?
echo "CokTest : $cokTest";
?>
End of test2.phtml
If I start to run test1.phtml, then the output is as the following:
CokTest :
It means that $cokTest cannot be set if there is no output in
test1.phtml.
There is no problem in Linux-apache platform.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=12481&edit=1