Yes, this question have a lot of duplicates one. But, in my code I really can't figure out where the problem is. I've done some research in another answers before I ask here, but, none is the same. Tried to look at spaces after everything. Removed that spaces, nothing work at all. The error:
<b>Warning</b>: session_start(): Cannot send session cookie - headers already sent by (output started at /home/monyf176/public_html/borasair.com/dev/header.php:82) in <b>/home/monyf176/public_html/borasair.com/dev/adminpage.php</b> on line <b>4</b><br />
<br />
<b>Warning</b>: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/monyf176/public_html/borasair.com/dev/header.php:82) in <b>/home/monyf176/public_html/borasair.com/dev/adminpage.php</b> on line <b>4</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/monyf176/public_html/borasair.com/dev/header.php:82) in <b>/home/monyf176/public_html/borasair.com/dev/adminpage.php</b> on line <b>7</b><br />
The line near 82 on header.php:
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav> -> thats one is the 82 (HTML!!!)
Start of adminpage.php:
<?php
include('header.php');
include('functions.php');
session_start();
if(!isset($_SESSION['user_email'])) { //Check if isn't logged in
header('Location: lib/logout.php');
} else { ?> <!-- If the user are logged in display the page -->
I can't find what is wrong. I know that there are a lot of duplicate cases. But I need help with this project.