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

added button to open operator panel

fixed session_start if session already started
This commit is contained in:
Alex
2015-09-08 02:19:45 +03:00
parent 53609f3f84
commit f36b789908
3 changed files with 14 additions and 5 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']))