Added php session_write_close to certain places to avoid hanging browser sessions

This commit is contained in:
Andre Lorbach 2011-03-28 12:47:02 +02:00
parent cbf8d3b9d2
commit 25e4ba1d7c
4 changed files with 23 additions and 0 deletions

View File

@ -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'] )
{ {

View File

@ -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;

View File

@ -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

View File

@ -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'] )
{ {