and how do I avoid it?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
Cannot send session cache limiter
Moderator: General Moderators
Cannot send session cache limiter
Please, what doe sthis error mean?
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:
Line 11 of /home/virtual/site140/fst/var/www/html/t3.php is outputting something in your case before the session_start()
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