[ciapug] What does it mean?

ciapug@cialug.org ciapug@cialug.org
Fri, 20 Jun 2003 13:38:56 -0400


That means you're sending session_start() after you've sent HTML. YOu need to 
place session_start() above any HTML sent by the page. Once you send any 
information to the browser, you can't request a session or Location change, 
among others.

Quoting Jane Swanson <jswanson@website-center.com>:

> First [of many]:  I get the following warning message at the first page of my
> session:
>       Warning</b>:  Cannot send session cookie - headers already sent by
> (output started at /home/...cgi-bin/select.php:2) in
> <b>/home/...cgi-bin/select.php</b> on line <b>3</b><br>    
> 
>       ANd on all pages:
>             <b>Warning</b>:  Cannot send session cache limiter - headers
> already sent (output started at /home/....cgi-bin/select.php:2) in
> <b>/home/....cgi-bin/select.php</b> on line <b>3</b><br> 
> 
>       I can suppress the messages if I use @ with my  session_start().  What
> do they mean?  My session variables pass as:
> 
>        $_SESSION['sessID'] = 'test';
>        $_SESSION['searchID'] = 2;
> 
>       Enough for the first Q.  Is this telling me something I should know?
> 
>       JBS 
>