Warning: Cannot send session cookie

From: Date: Wed, 05 Oct 2005 01:15:51 +0000
Subject: Warning: Cannot send session cookie
Groups: php.general 
Request: Send a blank email to php-general+get-223631@lists.php.net to get a copy of this message
Any idea why I'm getting this error, and only on this page? I have the same header on every other page? http://testesp.flsh.usherb.ca/thingstodo.html The page contains a \n before I start my <?php. Is this doing it? <?php session_name( 'CCLTrolley' ); session_start(); // Initialize the trolley. if( !isset( $_SESSION['TrolleyContents'] ) ) { $_SESSION['TrolleyContents'] = array(); } ?> Warning: Cannot send session cookie - headers already sent by (output started at /var/www/html2/thingstodo.html:2) in /var/www/html2/thingstodo.html on line 4 Warning: Cannot send session cache limiter - headers already sent

« previous php.general (#223631) next »