I am not sure why, it gave me this error, and my session_start(); is already at the first line. I goole it and get many people facing the problem but answer does not solve my problem. It may have caused Encoding in UTF-8. but i am not sure. Here is my code.
<?php
session_start();
if(!isset($_SESSION['designation']))
{
header('Location: login.php');
}
?>
Is there any mistake i made?