Bug #15317 Updated: setcookie() does not work with CGI PHP

From: Date: Tue, 04 Jun 2002 13:00:39 +0000
Subject: Bug #15317 Updated: setcookie() does not work with CGI PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9462@lists.php.net to get a copy of this message
ID: 15317 Updated by: bmatzelle@yahoo.com Reported By: bmatzelle@yahoo.com Status: Bogus Bug Type: IIS related Operating System: Windows 2000 SP2 PHP Version: 4.1.1 New Comment: When this bug report was filed 4.1.1 was the latest version. It is my understanding that the QA team should verify that the bug has been fixed rather than making the statement that "the problem might already be fixed". At the very least since you are the one closing the bug report you should verify this. Now this bug will continue to propogate. Previous Comments: ------------------------------------------------------------------------ [2002-06-03 12:29:07] 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. ------------------------------------------------------------------------ [2002-05-16 16:10:07] JaM3z2000@hotmail.com nope... doesn't work at my server... :( ------------------------------------------------------------------------ [2002-04-22 13:46:39] ftouanen@yahoo.fr Concerning cookies, check this usefull test to determine what "cookie method" is working in your environment. http://www.chipchapin.com/WebTools/cookietest.php? source=true I'm using PHP 4.11 under WNT 4 SP5, WNT 2K, WIN98 with Apache for WIN32. Client are IE4, IE 5.5, IE6 and NS 6 under WIN95,WIN98,WIN2K. I got some problems by using a setcookie like : setcookie("user","$info",time() + 15552000); I changed in : setcookie("user","$info","(time() + 15552000)"); and it's working fine now. Hope that will help. ------------------------------------------------------------------------ [2002-03-04 16:35:26] krane@adm.njit.edu Experiencing the same problem. If the cookies are set using setcookie() on a *nix box, they can successfully be read using PHP/ASP running on Windows or *nix. However, cookies set with PHP using setcookie() on Windows cannot be read by *either* ASP or PHP running on *either* Windows or *nix. Since it's not triggering IE's cookie protection nor lynx's it's a safe assumption that maybe setcookie() just doesnt work on Windows. ------------------------------------------------------------------------ [2002-01-31 14:04:31] bmatzelle@yahoo.com When I use the IIS CGI version on Windows the setcookie() function does not set the cookie. The $HTTP_COOKIE_VARS and $_COOKIE arrays are both totally empty. However, it does work with the (very unstable) ISAPI version and always works on Apache no matter the OS. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15317&edit=1

« previous php.bugs (#9462) next »