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

Fixes by Alex (thank you)

Changed session backend to files to save some db processing
This commit is contained in:
Adam Zammit
2015-11-24 11:12:29 +11:00
17 changed files with 82 additions and 81 deletions

View File

@@ -40,16 +40,13 @@ include_once("config.inc.php");
include_once("db.inc.php");
//get session name from DB
//
$sql = "SELECT stg_value
FROM " . LIME_PREFIX . "settings_global
WHERE stg_name = 'SessionName'";
session_name($db->GetOne($sql));
session_name(LS_SESSION_NAME);
session_set_cookie_params(0,QUEXS_PATH);
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']))