ID:               15317
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         IIS related
 Operating System: Windows 2000 SP2
 PHP Version:      4.1.1
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2002-03-04 16:35:26] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to