Index: trunk/include/set_cash_cookie_path.php
===================================================================
--- trunk/include/set_cash_cookie_path.php	(revision 27)
+++ trunk/include/set_cash_cookie_path.php	(revision 27)
@@ -0,0 +1,68 @@
+<?php
+$modname=basename(dirname(dirname(__FILE__)));
+$modurl = XOOPS_URL . '/modules/' . $modname;
+$hash = md5($modurl);
+/**
+ * It is possible to define this in wp-config.php
+ * @since 2.0.0
+ */
+if ( !defined('USER_COOKIE') )
+	define('USER_COOKIE', $modname . 'user_' . $hash);
+
+/**
+ * It is possible to define this in wp-config.php
+ * @since 2.0.0
+ */
+if ( !defined('PASS_COOKIE') )
+	define('PASS_COOKIE', $modname . 'pass_' . $hash);
+
+/**
+ * It is possible to define this in wp-config.php
+ * @since 2.5.0
+ */
+if ( !defined('AUTH_COOKIE') )
+	define('AUTH_COOKIE', $modname . '_auth_' . $hash);
+
+/**
+ * It is possible to define this in wp-config.php
+ * @since 2.6.0
+ */
+if ( !defined('SECURE_AUTH_COOKIE') )
+	define('SECURE_AUTH_COOKIE', $modname . '_sec_' . $hash);
+
+/**
+ * It is possible to define this in wp-config.php
+ * @since 2.6.0
+ */
+if ( !defined('LOGGED_IN_COOKIE') )
+	define('LOGGED_IN_COOKIE', $modname . '_logged_in_' . $hash);
+
+/**
+ * It is possible to define this in wp-config.php
+ * @since 2.3.0
+ */
+if ( !defined('TEST_COOKIE') )
+	define('TEST_COOKIE', $modname . '_test_cookie');
+
+/**
+ * It is possible to define this in wp-config.php
+ * @since 1.2.0
+ */
+if ( !defined('COOKIEPATH') )
+	define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', XOOPS_URL . '/' ) );
+
+/**
+ * It is possible to define this in wp-config.php
+ * @since 1.5.0
+ */
+if ( !defined('SITECOOKIEPATH') )
+	define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', XOOPS_URL . '/' ) );
+
+/**
+ * It is possible to define this in wp-config.php
+ * @since 2.6.0
+ */
+if ( !defined('ADMIN_COOKIE_PATH') )
+	define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH);
+
+?>
Index: trunk/wp-config.php
===================================================================
--- trunk/wp-config.php	(revision 26)
+++ trunk/wp-config.php	(revision 27)
@@ -1,4 +1,5 @@
 <?php
 require dirname( __FILE__ ).'/include/include_xoops_define.php' ;
+require dirname( __FILE__ ).'/include/set_cash_cookie_path.php' ;
 require dirname( __FILE__ ).'/include/pluggable-override.php' ;
 
