Re: cookies problem
| From: | Stephen March | Date: | Thu, 10 Jul 2003 04:23:38 +0000 |
| Subject: | Re: cookies problem | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-20753@lists.php.net to get a copy of this message | ||
Mark,
I've run in to this problem - first noticing this with PHP Nuke. This cookie problem seems to be a result of a server configuration issue with the Windows operating system.
At work I have 2 Win-2k servers, both running PHP 4.3.2, our production
web-server can set cookies no problem. On our dev-web server, cookies can not be set. This is cause of the "admin loop" error of PHP Nuke - if you're doing any reading on the forums. This is web-server independant, you'll notice if you install Apache on the system, you will have the same issue of cookies not being set. Now, something I will try is setting Apache up in CGI mode to see if that has the same problems? Internet explorer 5.0 should work for you, however versions of 5.5+ (and some of the other browsers such as Opera), require a domain tobe set as part of the cookie, and as such error out. I've been tracking this problem on our dev server for a while, and it seems to be part of the Win 2k hardening proceedures that Microsoft
recommends. Using the exact same PHP configuration on the exact same web-servers (same patch levels to the T), one works and one does not
8(Frustrating indeed! ~Steve Mark Anderson wrote:
Hi everybody: I have php 4.3.2 running as a isapi module on WinXP with IIS 5.1. When I run the following script: setcookie("auth_login",$cookie_val['auth_login'],time() + 3600); or setcookie("auth_level",$cookie_val['auth_level'],time() + 3600); it fails to set the cookie in browsers different of netscape navigator. ie opera or internet explorer. nevertheless it works localy with internet explorer. I have check all kind of privacy settings in this browsers and it remains the same... does someone have a clue about this? Thanks in advance Mark Sent by Medscape Mail: Free Portable E-mail for Professionals on the Move http://www.medscape.com