From 60a16036286abb761cc837148c8b54e022c420bc Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 11 Dec 2016 22:59:48 -0700 Subject: [PATCH] Update php.php --- resources/php.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/php.php b/resources/php.php index 5de0dd0f55..a42722b783 100644 --- a/resources/php.php +++ b/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); } -?> \ No newline at end of file +?>