Re: session_start() warnings
| From: | PaoAge | Date: | Sun, 13 Jun 2004 03:33:09 +0000 |
| Subject: | Re: session_start() warnings | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188171@lists.php.net to get a copy of this message | ||
Larry E . Ullman wrote:
Thanks, I got it. I leave a line of space before I use include directive.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