I have a config.php which basically just has session_start();
I include it in my header.php via
include_once("config/config.php");
This works great on localhost, but the session doesn't start on my live WebHost. If I add session_start();
To the top of each page(above the include_once('includes/header.php);, it then works on my live website.
All of the HTML/CSS/js from the Header.php loads just fine, but the session doesn't seem to start for some reason. Works on local, not on production. Any suggestions?
I hope this makes sense, Thanks.