You are here: Re: [PHP] Warning: Cannot send session cookie « PHP « IT news, forums, messages
Re: [PHP] Warning: Cannot send session cookie

Posted by Stephen Leaf on 10/02/30 11:28

On Tuesday 04 October 2005 08:15 pm, John Taylor-Johnston wrote:
> 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?
yup

>
> <?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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация