RE: [PHP] PHP4 Session Error Message

From: Date: Thu, 10 Aug 2000 18:58:56 +0000
Subject: RE: [PHP] PHP4 Session Error Message
Groups: php.general 
Request: Send a blank email to php-general+get-11203@lists.php.net to get a copy of this message
This doesn't sound like a "session error message". I think that somewhere in your php script, you probably have either a blank line before the php start tag ( <? ) , or you are sending text to the browser before you are working with your sessions. If either of these are the case, then PHP will automatically send an HTML header. When the "send session cookie" part of the script executes, it is trying to send another header...which can't be done after something has been written to the browser. Quick Tip: Get rid of any blank space or html code before your opening tag. --- Kurt A. Boyer Advanced Software Engineer Matchlogic, Inc. http://www.matchlogic.com -----Original Message----- From: A.Geluk [mailto:A.Geluk@STUDENT.HRO.NL] Sent: Thursday, August 10, 2000 12:34 PM To: php-general@lists.php.net Subject: [PHP] PHP4 Session Error Message I have an account by Widexs.nl. Cookies are enabled and cache_limiter=nocachable and safe_mode=on I would like to work with sessions. I've start the session with session_start(); And register the variables with session_register(); Than I get an error message Warning: Cannot send session cookie - headers already sent by (output started at /opt/guide/www.profiteffect.com/HTML/Arnold/addtobasket.php3:5) in /opt/guide/www.profiteffect.com/HTML/Arnold/addtobasket.php3 on line 8 Warning: Cannot send session cache limiter - headers already sent by (output started at /opt/guide/www.profiteffect.com/HTML/Arnold/addtobasket.php3:5) in /opt/guide/www.profiteffect.com/HTML/Arnold/addtobasket.php3 on line 8 Who can helps me? And how must I change the settings on the server. Arnold Geluk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#11203) next »