How can I share users and cookies between two wordpress sites?
-
Hi
I’ve installed two wordpress site.
first one is in mydomain.com and second one in mydomain.com/second.
both of them using one database with different prefixes.
I’ve added these two line in second installation wp-config.php file:
define(‘CUSTOM_USER_TABLE’, ‘wp_users’);
define(‘CUSTOM_USER_META_TABLE’, ‘wp_usermeta’);
(wp_) is my first installation database prefix.
I’ve copied :
‘AUTH_KEY’
‘SECURE_AUTH_KEY’
‘LOGGED_IN_KEY’
‘NONCE_KEY’
‘AUTH_SALT’
‘SECURE_AUTH_SALT’
‘NONCE_SALT’
from first installation to second installation.
Now my problem is here:
I have to login to each of sites directly.
Please tell me how can I solve this problem?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How can I share users and cookies between two wordpress sites?’ is closed to new replies.