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

revert verification for session_start() to avoid " PHP Warning: session_start(): Cannot send session cache limiter - headers already sent"

This commit is contained in:
Alex
2015-11-23 15:45:53 +02:00
parent eac8b7c1d7
commit 5ac2db38f2
4 changed files with 13 additions and 4 deletions

View File

@@ -49,7 +49,10 @@ $sql = "SELECT stg_value
session_name($db->GetOne($sql));
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']))