Re: note 25200 added to function.session-start

From: Date: Fri, 13 Sep 2002 22:34:13 +0000
Subject: Re: note 25200 added to function.session-start
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-36653@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On September 13, 2002 16:08, artf@veneerz.com wrote: > Warning: Cannot send session cookie - headers already sent by (output > started at /home/www/veneerz/setup.php:1032) in /home/www/veneerz/shop.php > on line 5 > > Warning: Cannot send session cache limiter - headers already sent (output > started at /home/www/veneerz/setup.php:1032) in /home/www/veneerz/shop.php > on line 5 > > Could anyone, please explain exactly what this error means. I am new to PHP > and spent 2 dyas trying to figure this bug out. Thank you > Art Hey Art, You cannot output *anything* before you start your session. For example, if you have this code: <?php echo '<title>Session Test</title>'; session_start(); ... ?> You must move session_start(); above the echo! Good Luck! - --zak -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9gmflb6QONwsK8bIRAoBeAJoDjzIM9xGcOm7TdY19d6qa1WiqDwCgklff vYTkYG/rGtnWGjVoWQUeJts= =G0Su -----END PGP SIGNATURE-----

« previous php.notes (#36653) next »