Re: session_star() problem

From: Date: Fri, 26 Oct 2001 22:12:13 +0000
Subject: Re: session_star() problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72517@lists.php.net to get a copy of this message
On Vie 26 Oct 2001 19:07, you wrote: > Ok I am starting on small web site and using PHP 4 on Apache with FreeBSD > 4.4 as the OS. I need to use sessions to pass some info around between > pages but when I use session_start() I get the error msg below. > > Warning: Cannot send session cookie - headers already sent by (output > started at /usr/home/gate/public_html/product_list.php:8) in > /usr/home/gate/public_html/product_list.php on line 9 > > Warning: Cannot send session cache limiter - headers already sent (output > started at /usr/home/gate/public_html/product_list.php:8) in > /usr/home/gate/public_html/product_list.php on line 9 > > I get this msg if it is the only thing in the php script as well as if it > is in an actually script that I am using. Maybe I don't php set up right > or something else.Could some one please put me in the right direction. The error says something has been sent to the output. Check if you have auto_prepend set to some file. Saludos... :-) -- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL? ----------------------------------------------------------------- Martín Marqués | mmarques@unl.edu.ar Programador, Administrador, DBA | Centro de Telematica Universidad Nacional del Litoral -----------------------------------------------------------------

« previous php.general (#72517) next »