php - sharing user on 2 WordPress installs in 2 sub domains on same server -
i have 2 wordpress sites in 2 different sub-domains test1.abc.com , test2.abc.com . both sites have wp-require plugin activated , logged-in users can see site. want make system if user logged 1 site, should auto-login other one. what try : after searching know need use 1 database both sites. have done these steps: i have download whole database of test2.abc.com site , change prefix wp_ wpmo_, replaced in whole database , upload first site's database. added these 2 lines in wp-config.php of second site, define second site should use first site's user table not own. define('custom_usermeta_table', 'wp_usermeta'); define('custom_user_table', 'wp_users'); now, second site using first site's users , able login second site user details of first site. the next problem cookies, added these lines in wp-config of both sites. define('cookie_domain', '.abc.com'); define('cookiepath', '/'); define('c...