mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-25 18:59:12 +02:00
Added php session_write_close to certain places to avoid hanging browser sessions
This commit is contained in:
parent
cbf8d3b9d2
commit
25e4ba1d7c
@ -127,6 +127,9 @@ $content['TITLE'] = InitPageTitle();
|
|||||||
|
|
||||||
// --- BEGIN Custom Code
|
// --- BEGIN Custom Code
|
||||||
|
|
||||||
|
// Do not BLOCK other Site Calls
|
||||||
|
WriteClosePHPSession();
|
||||||
|
|
||||||
// Get data and print on the image!
|
// Get data and print on the image!
|
||||||
if ( !$content['error_occured'] )
|
if ( !$content['error_occured'] )
|
||||||
{
|
{
|
||||||
|
@ -1513,6 +1513,19 @@ function StartPHPSession()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This Functions starts the main PHP Session if necessary
|
||||||
|
*/
|
||||||
|
function WriteClosePHPSession()
|
||||||
|
{
|
||||||
|
global $RUNMODE;
|
||||||
|
if ( $RUNMODE == RUNMODE_WEBSERVER )
|
||||||
|
{
|
||||||
|
@session_write_close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function PrintSecureUserCheck( $warningtext, $yesmsg, $nomsg )
|
function PrintSecureUserCheck( $warningtext, $yesmsg, $nomsg )
|
||||||
{
|
{
|
||||||
global $content, $page;
|
global $content, $page;
|
||||||
|
@ -197,6 +197,10 @@ else
|
|||||||
|
|
||||||
|
|
||||||
// --- BEGIN Custom Code
|
// --- BEGIN Custom Code
|
||||||
|
|
||||||
|
// Do not BLOCK other Site Calls
|
||||||
|
WriteClosePHPSession();
|
||||||
|
|
||||||
if ( isset($content['Sources'][$currentSourceID]) )
|
if ( isset($content['Sources'][$currentSourceID]) )
|
||||||
{
|
{
|
||||||
// Obtain and get the Config Object
|
// Obtain and get the Config Object
|
||||||
|
@ -92,6 +92,9 @@ $content['TITLE'] = InitPageTitle();
|
|||||||
|
|
||||||
// --- BEGIN Custom Code
|
// --- BEGIN Custom Code
|
||||||
|
|
||||||
|
// Do not BLOCK other Site Calls
|
||||||
|
WriteClosePHPSession();
|
||||||
|
|
||||||
// Get data and print on the image!
|
// Get data and print on the image!
|
||||||
if ( !$content['error_occured'] )
|
if ( !$content['error_occured'] )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user