--- Rachael LaPorte Taylor <[EMAIL PROTECTED]> wrote:
> OK, I understand that in order to avoid those nasty warning messages
> about "Cannot send session cookie - headers already sent...." you must
> include the directive, session_start, above all headers, includes, etc.
> 
> I'm trying to debug and port a contractor's code to PHP 4.3.4 from a
> couple of years ago. Is there an explanation as to why the code, written
> under PHP 3 and also working under PHP 4.0.4, would not generate these
> warning messages, without having session_start at the top of the file?
> The session_start directive is pulled in later with an include file.

It only has to be issued prior to any output, unless there is output
buffering.

Hope that helps.

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
     Coming mid-2004
HTTP Developer's Handbook
     http://httphandbook.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to