473,326 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

session_start(): Cannot send session cache limiter - headers already sent


I'm getting this warning:

[15-May-2006 18:11:35] PHP Warning: session_start(): Cannot send
session cache limiter - headers already sent in
/home/httpd/vhosts/monkeyclaus.org/httpdocs/media/audio/pdsIncludes/CommandStartSession.php
on line 14
line 14 is this:

session_start();
why is that creating a warning?

May 15 '06 #1
3 53638
Rik
lawrence k wrote:
I'm getting this warning:

[15-May-2006 18:11:35] PHP Warning: session_start(): Cannot send
session cache limiter - headers already sent in
/home/httpd/vhosts/monkeyclaus.org/httpdocs/media/audio/pdsIncludes/CommandS
tartSession.php on line 14


http://nl2.php.net/manual/en/function.session-start.php
Note: If you are using cookie-based sessions, you must call session_start()
before anything is outputted to the browser.

Comment of header() is also applicable:
http://nl2.php.net/manual/en/function.header.php
Remember that header() must be called before any actual output is sent,
either by normal HTML tags, blank lines in a file, or from PHP. It is a very
common error to read code with include(), or require(), functions, or
another file access function, and have spaces or empty lines that are output
before header() is called. The same problem exists when using a single
PHP/HTML file.

Grtz,
--
Rik Wasmus
May 15 '06 #2

Rik wrote:
lawrence k wrote:
I'm getting this warning:

[15-May-2006 18:11:35] PHP Warning: session_start(): Cannot send
session cache limiter - headers already sent in

/home/httpd/vhosts/monkeyclaus.org/httpdocs/media/audio/pdsIncludes/CommandS
tartSession.php
on line 14


http://nl2.php.net/manual/en/function.session-start.php
Note: If you are using cookie-based sessions, you must call session_start()
before anything is outputted to the browser.


Yes, I know, but the error is pointing to a line that says only this:

session_start();

Is that not insane?

It's saying that headers were already sent in CommandStartSession.php
on line 14, but line 14 simply calls session_start().

I mean, what the hell?

May 17 '06 #3
Rik
lawrence k wrote:
Yes, I know, but the error is pointing to a line that says only this:

session_start();

Is that not insane?

It's saying that headers were already sent in CommandStartSession.php
on line 14, but line 14 simply calls session_start().


Lines in error reporting aren't always correct, sometimes you have to do it
the hard way.

Grtz,

--
Rik Wasmus
May 17 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: mr_burns | last post by:
Hi, i am getting the following errors when running my php script: Warning: Cannot send session cookie - headers already sent by (output started at ...
19
by: lawrence k | last post by:
How can I find out where my script is outputting to the screen for the first time? My error logs are full of stuff like this: PHP Warning: session_start(): Cannot send session cache...
14
by: bb nicole | last post by:
I using session when creaate a forum. But it display error like: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at...
4
by: three-eight-hotel | last post by:
I'm somewhat of a newbie to PHP coding, but have developed a site using the technology, and have been pleasantly surprised by the capabilities offered. I am more comfortable in the ASP world,...
3
by: mrosado | last post by:
Hi everybody, I have this problem.- The browser launch this two errors: Warning: session_start() : Cannot send session cache limiter - headers already sent (output started at...
1
by: gipsy | last post by:
Hello, I know that you guys are familiar with this, but I tried almost every solution I googled, but no chance getting it wroked, here is the error. and here is the sessiondata.php lines,...
3
anjali321
by: anjali321 | last post by:
Can anyone help me out in fixing the problem? Warning: session_start() : Cannot send session cache limiter - headers already sent (output started at /home/aman/public_html/contactus.php:1) in...
2
irfanmodan
by: irfanmodan | last post by:
when i run client side login page... in login page i include menutop.php,then in menutop me call commonfile.php,code of commonfile.php as below..... <? session_start(); ?> <?...
1
by: ivan bravo | last post by:
Warning: session_start() : Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\wwwroot\pum\commons\Session.Commons.mod ule.php:7) in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.