Re: Subject: cookies problem (FIXED)
| From: | Neil Smith | Date: | Sun, 19 Jan 2003 10:19:26 +0000 |
| Subject: | Re: Subject: cookies problem (FIXED) | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17970@lists.php.net to get a copy of this message | ||
Well the fact that this fixed it, tends to imply you were outputting some warn level messages before cookies were sent, therefore they weren't : A cookie is a header, and like any HTTP header they must be sent before any other content (even a newline or linebreak can do it).
If you pushed any error messages (such as a warning that a variable was not yet defined etc) before sending your cookie or other headers, this would cause your symptoms.
HTH
Neil Smith.
At 03:33 19/01/2003 +0000, you wrote:
Message-ID: <20030118230355.64205.qmail@pb1.pair.com> To: php-windows@lists.php.net From: "Ed" <art_drennan@yahoo.com> Date: Sat, 18 Jan 2003 17:03:00 -0600 Subject: Re: Subject: cookies problem (FIXED) It's not a browser problem, as I said in my post php wasn't saving the cookies. This seems to be a widespred problem after searching many mailing lists and seeing this problem on every one of them, with no fixes. I had already changed my path to c:\php\sessions, so that wasn't the problem either. What finally fixed it was changing this in the php.ini file: error_reporting = E_ALL To This: error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR Now cookis and sessions work just like they're supposed to. Ed