Cannot send session cache limiter
Posted: 22 Jun 2017, 07:00
I have a php page where i work with session..
but i get this error:
Code: Select all
<?php
session_start();
if (isset($_SESSION['username'])) {
$username2=$_SESSION['username'];
} else {
echo "<script type='text/javascript'> window.location='index.php'; </script>";
}
require('layout2.php');
// etc. php code
Code: Select all
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/mluci/public_html/d/message.php:1) in /home/mluci/public_html/d/message.php on line 1