ID: 28133 Updated by: [EMAIL PROTECTED] Reported By: jvelguth at interaccess dot com -Status: Open +Status: Bogus Bug Type: Apache2 related Operating System: win 2k PHP Version: 4.3.6 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. . Previous Comments: ------------------------------------------------------------------------ [2004-04-24 05:27:44] jvelguth at interaccess dot com Description: ------------ I am trying to run Apache2 as a local host and I can get it to act as a server, it even does mysql ok. I cannot get it to set a cookie. It will set the phpsessonid which is a cookie. I don't know if its a fault of the product or a configuration issue. The following line of code is one cookie that I am trying to set. When I upload the page to my website it all works fine but as localhost its a no go. My website is on Apache 1.3.29. (note: from the code below $XdomainX is my full domain name where localy its localhost)(now I wonder if localhost is incorrect but I do have cookies from javascript localhost) non-bug info I have even tried to use 1.3.29 for localhost and I cannot use "method = post". I would like to test php pages from localhost and really don't care which Apache I use. Maybe an example of a working httpd.conf is what I need. I have 2 websites I need to test with so an example with virtual host would be nice. Reproduce code: --------------- $XdomainX="localhost"; $setadmin = setcookie("ULadmin","admin",time()+14400,"/",$XdomainX,0); Expected result: ---------------- in total there should be 5 cookies set Actual result: -------------- non user cookies set ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28133&edit=1