[fusion-commits] r2217 - sandbox/jxlib-3.0/layers/MapServer/php
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Sep 7 15:36:56 EDT 2010
Author: zjames
Date: 2010-09-07 19:36:56 +0000 (Tue, 07 Sep 2010)
New Revision: 2217
Modified:
sandbox/jxlib-3.0/layers/MapServer/php/Session.php
Log:
only install session save handler once
Modified: sandbox/jxlib-3.0/layers/MapServer/php/Session.php
===================================================================
--- sandbox/jxlib-3.0/layers/MapServer/php/Session.php 2010-09-03 15:47:13 UTC (rev 2216)
+++ sandbox/jxlib-3.0/layers/MapServer/php/Session.php 2010-09-07 19:36:56 UTC (rev 2217)
@@ -370,15 +370,19 @@
function installSessionDirectoryHandler($szGCCallBack="")
{
- $GLOBALS['gszGarbageColectionCallBackFunction'] = $szGCCallBack;
-
- // Set handler functions
- session_set_save_handler("_open",
- "_close",
- "_read",
- "_write",
- "_destroy",
- "_gc");
+
+ if (!isset($GLOBALS['gszSessionDirectoryHandlerInstalled'])) {
+ $GLOBALS['gszGarbageColectionCallBackFunction'] = $szGCCallBack;
+ // Set handler functions
+ session_set_save_handler("_open",
+ "_close",
+ "_read",
+ "_write",
+ "_destroy",
+ "_gc");
+ $GLOBALS['gszSessionDire ctoryHandlerInstalled'] = true;
+ }
+
}
function initializeSession( $szSessName="sid", $szSessSavePath="", $szSessionID="" )
More information about the fusion-commits
mailing list