I'm getting two warnings:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent on line 2
This is my index.php (this file is called first):
include ('funkcije.php');
session_start();
if(!isset($_SESSION)) {session_start();}
if(isset($_POST['login']))
{
Log($skripta);
}
This is my code (funkcije.php //this file is included and here are functions definitions):
<?php
if(!isset($_SESSION)) {session_start();} // On this line is problem
$skripta=$_SERVER['SCRIPT_NAME'];
$skripta=basename($skripta);
function Menu() {
?>
<html>
<ul>
<li> <a href="index.php?akc=logout"> Logout </a> </li>
</ul>
</body>
</html>
<?php
}
Can someone please help me to resolve this problem?