Re: [PHP] Check for start_sessoin without causing header problems

2003-01-18 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: > how can I call a register session from within a > class and make sure that the session is allready > active and if not just print a warning. This is closely related; you can check to see whether headers have already been sent: http://www.php.net/manual/en/function.h

[PHP] Check for start_sessoin without causing header problems

2003-01-18 Thread SLanger
Hello I checked the PHP manual and couldn't find anything on this... When I call session_register() an implicit call to session_start() is executed. So if the session handling uses cookies to track the session and the call to session_register() is not before any output this will cause a header