From:             [EMAIL PROTECTED]
Operating system: Window 2000 and IIS4
PHP version:      4.0.6
PHP Bug Type:     IIS related
Bug description:  Cookie cannot be set if there is no output for a page

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 bug report at: http://bugs.php.net/?id=12481&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to