You must place session_start() before any other /output/. It can come after other code, as long as nothing will be output before it. Alternately, you can turn on output buffering and just not worry about it.
Matthew Walker Ecommerce Project Manager Mountain Top Herbs -----Original Message----- From: Team GotFusion [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 7:16 AM To: [EMAIL PROTECTED] Subject: [PHP] Session_start() Do I have to place a session_start() function at the top of a page (.php) before the <headers>? If I am creating a login form with PHP_SELF, can I place the session_start() at any point in the html where the user has been validated and logged in? Thanks, Tami Team GotFusion --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.325 / Virus Database: 182 - Release Date: 2/19/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.325 / Virus Database: 182 - Release Date: 2/19/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php