Bug #15317 Updated: setcookie() does not work with CGI PHP
| From: | mfischer@php.net | Date: | Mon, 03 Jun 2002 16:29:08 +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-9354@lists.php.net to get a copy of this message | ||
ID: 15317
Updated by: mfischer@php.net
Reported By: bmatzelle@yahoo.com
-Status: Open
+Status: Bogus
Bug Type: IIS related
Operating System: Windows 2000 SP2
PHP Version: 4.1.1
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:
------------------------------------------------------------------------
[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