Page 1 of 1

Cannot send session cache limiter

Posted: Sat Oct 18, 2003 5:27 am
by mesz
Please, what doe sthis error mean?
Warning: Cannot send session cache limiter - headers already sent (output started at /home/virtual/site140/fst/var/www/html/t3.php:11) in /home/virtual/site140/fst/var/www/html/news/view.php on line 2
and how do I avoid it?

Posted: Sat Oct 18, 2003 5:41 am
by markl999
It means session_start() must come before any output is sent. Output is basically anything that's sent to the browser..including white space.
So all the following will fail:

Code: Select all

<html>
<?php session_start() ?>

<space here><?php
session_start();

<?php
include_once 'foo.php';
session_start(); //will fail if foo.php outputs anything
Line 11 of /home/virtual/site140/fst/var/www/html/t3.php is outputting something in your case before the session_start()

Posted: Sat Oct 18, 2003 5:46 am
by mesz
I see!
Got to go now, I'll let you know on Monday if it works!

rep

Posted: Sat Oct 18, 2003 5:56 am
by itsmani1
wel u just use
this on the top of ur page

ob_start('mb_output_handler');

hope it will work.