I already checked some of topic about the same issues of mine and try to solve it but still can't. I hope someone can help me.
<?php
include('pageprotect.php');
$id = $_SESSION["username"];
?>
Above code is at above some of my page.
<?php session_start();
if(!isset($_SESSION['username'])){
header("location:index.html");
}
?>
This one is code for pageprotect.php When i try to run this page, it shows that
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\Software Data\Xampp 1.7.3\xampp\htdocs\FOS\mobile\plosurveyg.php:1) in D:\Software Data\Xampp 1.7.3\xampp\htdocs\FOS\mobile\pageprotect.php on line 2
Besides that, there's no problem on other page with the same code except this one.
I don't know what the problem is, sorry about my English. >.< Thanks for help