Explorar el Código

Update php.php

FusionPBX hace 8 años
padre
commit
72431182fd
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      resources/php.php

+ 2 - 2
resources/php.php

@@ -27,7 +27,7 @@
 	//session handling
 		//start the session
 			ini_set("session.cookie_httponly", True);
-			session_start();
+			if (!isset($_SESSION)) { session_start(); }
 		//regenerate sessions to avoid session id attacks such as session fixation
 			if (array_key_exists('security',$_SESSION) and $_SESSION['security']['session_rotate']['boolean'] == "true") {
 				$_SESSION['session']['last_activity'] = time();
@@ -58,4 +58,4 @@
 			unset($in);
 		}
 
-?>
+?>