You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marc Fromm <Ma...@wwu.edu> on 2009/12/29 22:25:29 UTC

[users@httpd] output buffer

I am receiving the "Cannot send session cookie - headers already sent" message even though I am using ob_start() at the top of my php script.

The php.ini file has output_buffering set to 4096 4096.
My server is running Red Hat Enterprise Linux 5.2 I am using PHP 5.1.6

Is there some other setting in httpd that I need to adjust to be able to start a session within the php script?

Thanks

Marc


Re: [users@httpd] output buffer

Posted by Marcin 'Rambo' Roguski <ra...@id.uw.edu.pl>.
On Tue, 29 Dec 2009 13:25:29 -0800
Marc Fromm <Ma...@wwu.edu> wrote:

> I am receiving the "Cannot send session cookie - headers already sent"
> message even though I am using ob_start() at the top of my php script.

This has nothing to do with Apache, the thing is that something in your 
php script causes unconditional issuing out output (like stray 
space, error in code).

-- 
try again

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org