Index: /trunk/xpressme_integration_kit/include/add_xpress_process.php
===================================================================
--- /trunk/xpressme_integration_kit/include/add_xpress_process.php	(revision 695)
+++ /trunk/xpressme_integration_kit/include/add_xpress_process.php	(revision 696)
@@ -114,4 +114,7 @@
 require_once( dirname( __FILE__ ).'/request_url.php');
 require_once( dirname( __FILE__ ).'/memory_limit.php');
+
+$global_session = $_SESSION;
+
 if (is_xpress_index_page_call()){
 	//$_SERVER['REQUEST_METHOD'] = 'POST' is
@@ -124,8 +127,10 @@
 	xpress_set_memory_limmit(); // Set memory limmit.(Limmit Value from XPressMe modele config.)
 	unset($offset);		//This Trap is provides the case where $offset is defined on the XOOPS side.
+	
 	require_once(ABSPATH.'wp-settings.php');
 	
 	//When it is not possible to connect it correctly at site home URL on the WordPress side, 
 	//URL is corrected based on accessed URL. 
+
 	global $xoopsUserIsAdmin;
 	if ($xoopsUserIsAdmin) safe_site_url();
@@ -135,5 +140,4 @@
 	}
 	wp();
-	
 	//for Event notification update on single post to which link is changed by permalink
 	if ( is_404() ) {
@@ -196,4 +200,7 @@
 		set_xpress_block_header($xoops_config->module_name);
 	}
+	if ( ini_get( 'register_globals' ) )
+		$_SESSION = $global_session; //restore a session erased by wp_unregister_GLOBALS
+	
 	exit();		// The return to wp-blog-header.php is stolen here
 }
@@ -201,3 +208,6 @@
 if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path;	// for Notification_triggerEvent
 xpress_set_memory_limmit(); // Set memory limmit.(Limmit Value from XPressMe modele config.)
+require_once(ABSPATH.'wp-settings.php');
+if ( ini_get( 'register_globals' ) )
+	$_SESSION = $global_session; //restore a session erased by wp_unregister_GLOBALS
 ?>
