2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

fixed session_start if session started

This commit is contained in:
Alex
2015-09-10 02:35:19 +03:00
parent a6f2ecaa6a
commit 8e4c8cbd44
2 changed files with 6 additions and 2 deletions

View File

@@ -48,7 +48,9 @@ $sql = "SELECT stg_value
session_name($db->GetOne($sql));
session_start();
if ((defined('PHP_SESSION_ACTIVE') && session_status() !== PHP_SESSION_ACTIVE) || !session_id()) {
session_start();
}
//check if the session exists or loginID not set
if (session_id() == "" || !isset($_SESSION['loginID']))

View File

@@ -48,7 +48,9 @@ $sql = "SELECT stg_value
session_name($db->GetOne($sql));
session_start();
if ((defined('PHP_SESSION_ACTIVE') && session_status() !== PHP_SESSION_ACTIVE) || !session_id()) {
session_start();
}
//check if the session exists or loginID not set
if (session_id() == "" || !isset($_SESSION['loginID']))