marjorios
Forum Replies Created
-
This issue has been resolved:
I changed this:
$baseurl = ‘http://mysite.com’;
$cookiehash = md5($baseurl);
define(‘COOKIEHASH’,$cookiehash);
define(‘COOKIE_DOMAIN’, ‘.mysite.com’);
define(‘SITECOOKIEPATH’, COOKIEPATH);
define(‘ADMIN_COOKIE_PATH’, COOKIEPATH);To This:
$baseurl = ‘http://mysite.com’;
$cookiehash = md5($baseurl);
define(‘COOKIEHASH’,$cookiehash);
define(‘COOKIE_DOMAIN’, ‘.mysite.com’);
define(‘COOKIEPATH’, ‘/’);
define(‘SITECOOKIEPATH’, COOKIEPATH);
define(‘ADMIN_COOKIE_PATH’, COOKIEPATH);Working Fine 🙂
Update:
If cookies are deleted in web browser history, users are able to login back. I see this is a cookie releated issue, any advise? please!!!Update in this issue.
Users are being registered and logged in acrross sites, as long user remain logged in is fine, the lopping issue becomes when they log out and try to log in back.Thanks for your prompt attentcion.
This is what I did:- Moved my database to make sure my websites are using the same database each one with their own prefix.
- I changed my wp-config.php.
I have followed this instruction:
http://jeff.mikels.cc/posts/single-sign-on-for-multiple-wordpress-installations/
http://codex.wordpress.org/Editing_wp-config.php#Custom_User_and_Usermeta_Tables
http://mikemclin.net/single-users-table-multiple-wordpress-sites/This are the basic changes I did to my wp-config.php file
$baseurl = ‘http://mysite.com’;
$cookiehash = md5($baseurl);
define(‘COOKIEHASH’,$cookiehash);
define(‘COOKIE_DOMAIN’, ‘.mysite.com’);
define(‘SITECOOKIEPATH’, COOKIEPATH);define( ‘CUSTOM_USER_TABLE’, ‘table_prefix_users’ );
define( ‘CUSTOM_USER_META_TABLE’, ‘table_prefix_usermeta’ );Also all my wp-config.php have the same Authentication Unique Keys and Salts.
And to define user roles for each site I use the plugin:WP-Orphanage Extended
Now this is working fine if user use my registration and sign in pages, but not if they try to sign in using Super Socializer.