Re: Re: Sessions Problem !!
| From: | Kevin Waterson | Date: | Fri, 06 Aug 2004 21:04:15 +0000 |
| Subject: | Re: Re: Sessions Problem !! | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193043@lists.php.net to get a copy of this message | ||
This one time, at band camp, Chris Martin <chris@chriscodes.com> wrote:
> > Warning: session_start(): Cannot send session cookie - headers already sent
> > by (output started at C:\Program Files\Apache
> > Group\Apache2\htdocs\maillist\maillist\admin.php:1) in C:\Program
> > Files\Apache Group\Apache2\htdocs\maillist\maillist\admin.php on line 1
>
> This error tells you that the output was started at line 1 of your
> admin.php file. (maybe a blank line at the top of the script?)
>
> As Miles suggested:
> "You have to call session_start() before any output to the page, even a
> single space."
This error is more likely generated as the headers are being sent from the error
message.
Kevin
--
______
(_____ \
_____) ) ____ ____ ____ ____
| ____/ / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \____) \_||_| \____) \____)
Kevin Waterson
Port Macquarie, Australia