session vars can unset configuration and runtime variables here.
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 Apr 2006 17:05:38 +0000 (17:05 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 Apr 2006 17:05:38 +0000 (17:05 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11084 7612ce4b-ef26-0410-bec9-ea0150e637f0

include/init.php

index a775511542df1d19c7cfa6c758788c13867a66db..e49161a64d7a9618dd03d66852cbbda6b8fa5400 100644 (file)
@@ -154,13 +154,19 @@ session_set_cookie_params (0, $base_uri);
 sqsession_is_active();
 
 /**
+ * DISABLED.
  * Remove globalized session data in rg=on setups
- */
-if ((bool) @ini_get('register_globals')) {
+ * 
+ * Code can be utilized when session is started, but data is not loaded.
+ * We have already loaded configuration and other important vars. Can't 
+ * clean session globals here.
+if ((bool) @ini_get('register_globals') &&
+    strtolower(ini_get('register_globals'))!='off') {
     foreach ($_SESSION as $key => $value) {
         unset($GLOBALS[$key]);
     }
 }
+*/
 
 sqsession_register(SM_BASE_URI,'base_uri');