Re: session_start() warnings
| From: | franciccio | Date: | Mon, 14 Jun 2004 21:48:08 +0000 |
| Subject: | Re: session_start() warnings | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188283@lists.php.net to get a copy of this message | ||
Always call the function on the first line of your page.
Bye
"Paoage" <taiwannowhere@netscape.net> ha scritto nel messaggio
news:20040613033235.12184.qmail@pb1.pair.com...
> Larry E . Ullman wrote:
> >> When I use session_start function, I receive the following warning
> >> messages:
> >>
> >> Warning: session_start(): Cannot send session cookie - headers already
> >> sent by (output started at
> >> /home/w4t3c101/public_html/ListClientInfo.php:2) in
> >> /home/w4t3c101/public_html/SessionControl.php on line 9
> >> Warning: session_start(): Cannot send session cache limiter - headers
> >> already sent (output started at
> >> /home/w4t3c101/public_html/ListClientInfo.php:2) in
> >> /home/w4t3c101/public_html/SessionControl.php on line 9
> >>
> >> Can anyone explain why it happens and how to solve the warnings.
> >> Thanks :)
> >
> >
> > Something on or about line 2 of ListClientInfo.php is sending data to
> > the Web browser. This could be HTML, plain text, or blank spaces. Get
> > rid of that and you'll get rid of the warnings.
> >
> > Larry
>
>
> Thanks, I got it. I leave a line of space before I use include directive.