RE: [PHP-WIN] Re: Subject: cookies problem (FIXED)
| From: | Chris Kranz | Date: | Sun, 19 Jan 2003 16:12:01 +0000 |
| Subject: | RE: [PHP-WIN] Re: Subject: cookies problem (FIXED) | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17974@lists.php.net to get a copy of this message | ||
surely if headers had already been sent, it would give an error telling
you so. In my files, the page is displayed properly, in full, with no
errors... but cookies are missing from the server and being sent.
chris kranz
fatcuban.com
-----Original Message-----
From: Neil Smith [mailto:neil@fresh-toast.uklinux.net]
Sent: Sunday, January 19, 2003 10:19 AM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Re: Subject: cookies problem (FIXED)
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
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php