[fusion-commits] r2409 - trunk/layers/MapServer/php
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Jul 5 10:04:51 EDT 2011
Author: pagameba
Date: 2011-07-05 07:04:51 -0700 (Tue, 05 Jul 2011)
New Revision: 2409
Modified:
trunk/layers/MapServer/php/Session.php
Log:
reorganize session debug messages to avoid notices.
Modified: trunk/layers/MapServer/php/Session.php
===================================================================
--- trunk/layers/MapServer/php/Session.php 2011-06-27 09:31:39 UTC (rev 2408)
+++ trunk/layers/MapServer/php/Session.php 2011-07-05 14:04:51 UTC (rev 2409)
@@ -348,17 +348,18 @@
$szTmpID = "";
// check both get and post variables
- if ( isset($GLOBALS['_COOKIE'][ini_get('session.name')]) )
+ debug_msg("Checking GPC for session ...");
+ if ( isset($GLOBALS['_COOKIE'][ini_get('session.name')]) ) {
$szTmpID = $GLOBALS['_COOKIE'][ini_get('session.name')];
- elseif (isset($GLOBALS['_GET'][ini_get('session.name')]))
+ debug_msg("_COOKIE:".$GLOBALS['_COOKIE'][ini_get('session.name')]);
+ } elseif (isset($GLOBALS['_GET'][ini_get('session.name')])) {
$szTmpID = $GLOBALS['_GET'][ini_get('session.name')];
- elseif (isset($GLOBALS['_POST'][ini_get('session.name')]))
+ debug_msg("_GET:".$GLOBALS['_GET'][ini_get('session.name')]);
+ } elseif (isset($GLOBALS['_POST'][ini_get('session.name')])) {
$szTmpID = $GLOBALS['_POST'][ini_get('session.name')];
-
+ debug_msg("_POST:".$GLOBALS['_POST'][ini_get('session.name')]);
+ }
debug_msg("szTmpID:".$szTmpID);
- debug_msg("_GET:".$GLOBALS['_GET'][ini_get('session.name')]);
- debug_msg("_POST:".$GLOBALS['_POST'][ini_get('session.name')]);
- debug_msg("_COOKIE:".$GLOBALS['_COOKIE'][ini_get('session.name')]);
// create new if necessary
if ( strlen( $szTmpID ) <= 0 ){
More information about the fusion-commits
mailing list