Browse Source

Update check_auth.php

FusionPBX 8 years ago
parent
commit
fa073c9583
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/check_auth.php

+ 1 - 1
resources/check_auth.php

@@ -35,7 +35,7 @@
 	ini_set("session.use_only_cookies", True);
 	ini_set("session.use_only_cookies", True);
 	ini_set("session.cookie_httponly", True);
 	ini_set("session.cookie_httponly", True);
 	if ($_SERVER["HTTPS"] == "on") { ini_set("session.cookie_secure", True); }
 	if ($_SERVER["HTTPS"] == "on") { ini_set("session.cookie_secure", True); }
-	session_start();
+	if (!isset($_SESSION)) { session_start(); }
 
 
 //if the username session is not set the check username and password
 //if the username session is not set the check username and password
 	 if (strlen($_SESSION['username']) == 0) {
 	 if (strlen($_SESSION['username']) == 0) {