Warning: Cannot send session cookie

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux