Bug #15317 Updated: setcookie() does not work with CGI PHP
| From: | JaM3z2000 at hotmail dot com | Date: | Thu, 16 May 2002 20:10:07 +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-7867@lists.php.net to get a copy of this message | ||
ID: 15317
Updated by: JaM3z2000@hotmail.com
Reported By: bmatzelle@yahoo.com
Status: Open
Bug Type: IIS related
Operating System: Windows 2000 SP2
PHP Version: 4.1.1
New Comment:
nope... doesn't work at my server... :(
Previous Comments:
------------------------------------------------------------------------
[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