Locally, I am not having any issue - but on a client machine these warnings are appearing. In light of this, I placed my session start right at the beginning of my files - it appears like this :
<!<?php session_start();
if(!isset($_SESSION["loggedin"]))
Notice the <!
this is used as a flag for DW that the template begins so I must have this right before the session start.
Therefore, is there any way to resolve this issue and stop these warnings. Or is it something deeper, like the way I'm handling the cookies/session. I put the above code at the start of each page that is protected. However, once the user logs in I set $_SESSION as follows.
session_start();
$_SESSION['user'] = $user;
$_SESSION['password'] = $password;
$_SESSION['loggedin'] = "true";
header("location:index.php"); //redirect to main page
Please advise.