Re: Can Someone Explain this error message to me?

From: Date: Mon, 14 Apr 2003 11:07:13 +0000
Subject: Re: Can Someone Explain this error message to me?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143743@lists.php.net to get a copy of this message
ext Hunter, Jess (JHunter@SPFLDSPARC.ORG) wrote: > > Warning: Cannot add header information - headers already sent by (output > started at /var/www/testbed/login.inc:8) in /var/www/testbed/login/login.inc > on line 14 > > setcookie(userID, "" . $Username); > header("Location: $afterLoggedIn?user=" . > $user->$useridField); This error doesn't have anything to do with authentication. You're trying to send a second set of headers. You have to enable output buffering at the top of your main flow control script, eg: // enable output buffering ob_start(); -- mike

« previous php.general (#143743) next »