diff --git a/resources/header.php b/resources/header.php index 90b63fd5e1..d044c9b18e 100644 --- a/resources/header.php +++ b/resources/header.php @@ -25,7 +25,18 @@ */ //includes files - require_once __DIR__ . "/require.php"; + require_once __DIR__ . "/require.php"; + +//start the session + ini_set("session.cookie_httponly", true); + if (!isset($_SESSION)) { session_start(); } + +//set the domains session + if (!isset($_SESSION['domains'])) { + $domain = new domains(); + $domain->session(); + $domain->set(); + } //if reloadxml then run the command if (permission_exists('dialplan_edit') && isset($_SESSION["reload_xml"])) {