mariovaldez.net
http://www.mariovaldez.net/webapps/forums/

Warning: session_start(): Cannot send session cache limiter
http://www.mariovaldez.net/webapps/forums/viewtopic.php?f=11&t=192
Page 1 of 1

Author:  giovi [ 18 Feb 2005, 12:54 ]
Post subject:  Warning: session_start(): Cannot send session cache limiter

I have a bilingual site and only 2 of my 10 pages show the error:
arning: session_start(): Cannot send session cache limiter - headers already sent

I can not understand why they give an error while all files are within the same folder. I copied the text of the page within a working page (a page without an error) and saved it to replace the faulty page. But still the error is coming up within these two pages.
Any help would be appreciated

This is my php part within the script which only causes errors on two of the 10 pages
<?php
session_start();
$slogin_noauthpage = 0;
$slogin_pagetitle = "Page title";
include_once ("slogin_lib.inc.php");
?>


Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/virtual/site133/fst/var/www/html/soll/Accomplishment.php:1) in /home/virtual/site133/fst/var/www/html/soll/Accomplishmentsitalo.php on line 2

Author:  mvaldez [ 18 Feb 2005, 13:40 ]
Post subject:  The page has already sent content...

giovi:

> I have a bilingual site and only 2 of my
> 10 pages show the error: arning: session_start():
> Cannot send session cache limiter - headers
> already sent I can not understand why they
> give an error while all files are within the same
> folder. I copied the text of the page within a
> working page (a page without an error) and
> saved it to replace the faulty page. But still the
> error is coming up within these two pages.
> Any help would be appreciated

Hi. Please check that there are not any content before the "<?" tag. No HTML, text, white space; not even an empty line.

Most probably the web server has PHP output-buffering disabled. That causes that any content is sent directly to the browser as the script is running (if enabled, the PHP script is executed until completion and then the result is sent to the browser).

Session data must be sent before any content. So, if the web server has already sent anything (even a whitespace) then it cannot send session data.

To check if your web server has output buffering disabled (or limited to X bytes), go to the admin page and click the "Show PHP configuration" link. There you can find the output_buffering option.

If you still have problems, let me know.


Regards,

Mario A. Valdez-Ramirez.

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/