You also need to define a matching COOKIEHASH for both sites – a random 32 bit string will do.
By default, COOKIEHASH is an MD5 hash of the site URL, and is used to generate the default names for all authentication-related cookies. Hence why, at the moment, your cross-domain login isn’t working (the names of the cookies aren’t consistent, as COOKIEHASH will be different for each site).
See wp_cookie_constants() for more information.
So to recap, your wp-config.php for both sites should look like:
define( 'COOKIE_DOMAIN', '.stolenmx.com' ); // Dot prefix
define( 'COOKIEPATH', "https://wordpress.stackexchange.com/" );
define( 'COOKIEHASH', md5( 'stolenmx.com' ) );
define( 'CUSTOM_USER_TABLE', 'wp_users' );
define( 'CUSTOM_USER_META_TABLE', 'wp_usermeta' );
Related Posts:
- Unable to execute Ajax request, status code 400
- How reduce wordpress login session timeout time?
- Is there a is_user_logged_in() for multisite?
- Unable to login to new custom domain on multisite?
- How to Login Once to an Entire WP Multisite Network
- Multisite – Redirect All Users to Subsite Home Page on Subsite Login
- wp_logout_url isn’t forwarding to correct link
- WordPress Multisite Login Access
- Logout issue with new Domain on WP Multisite
- how to logout user on browser tab or window closes
- Custom Connect to Facebook, problem logging in/logging out
- Subdomain login problems
- WordPress Multisite local: wp-login.php refreshes on login Chrome Browser
- ‘Remote Login’ with MultiSite Domain Mapping still forcing users to login to all blogs individually?
- How to stay logged in on a multisite with different domains?
- Login on Multiple Sub-Domains without Multisite
- Fresh Multisite Install – Can’t Log In
- Auto Redirect after login
- WordPress MultiSite login to the respective site
- How to fix blocked cookies error that doesn’t let me log into wp-admin?
- Session Experies and Get Logged Out Within Few Minutes
- Good way to block users within a multisite setup without deleting them?
- Automatically login user across multisite
- How can you override the is_multisite check in wp-login.php for individual login/registration?
- WordPress Multisite logout conflict
- How to write RewriteRule for login in multisite
- Multisite Login problem
- Https and Http Login Issue on WordPress Multisite
- Different Domains in Multisite Setup
- Multisite infinite redirect loop
- Disable site visiting and user logins excepting for a specific user
- Infamous admin login redirect
- Is there something I need to know in order to use WordPress on foreign (Swedish) TLDs?
- Restrict users of site 1 to login in site 2 in wordpress multisite
- add class to element if user is not logged in [closed]
- How to display custom logo on WordPress login page
- Moving from a non WordPress site to a WordPress Site – Login between both sites
- logging out with/without confirmation – single site, multisite
- WordPress Multisite: Login to all subsites at once
- Multisite – site user limited only for this site
- Unable to sign in to network after moveing address but able to login into child sites
- User not staying logged into one of sub sites in multisite after SSL
- Single sign on to sub-sites in Multisite Network
- WordPress automatic Login on other page?
- how to make a cronjob run, when user needs to be logged in
- WordPress Network with SSL for multiple domains
- Why does this multisite redirection loop vanish when I add “www.”?
- One login for 3 WordPress installations with combined user table doesn’t work
- Multisite: Redirect Subsite Administrator to Subsite Home Page, Bypassing Dashboard
- Admin user getting redirected to /wp-admin/user
- How to login a user with wp_set_auth_cookie on a specific blog within a multisite environment
- Is it possible to create a login for restricted visibility?
- How do I combine wp_redirect and add_filter?
- Some Subdomains on a Multisite Install Not Found
- Common login for websites belonging in different networks
- Best Way to Setup a Network of WP Sites?
- how to manage Session in WordPress using custom login?
- WordPress Multisite restict user access
- Error Message when logging into WordPress on Xampp
- WordPress MU: Cookie error when trying to login on network WP instance
- something in database is causing me to not be able to log into network admin of multisite
- How to use same email for multiple users
- wp_get_attachment_image_src multisite issue
- How to automatically register widgets on new blog?
- Favicon plugin for WordPress running in network mode (multisite)? [closed]
- WordPress Multisite with VVV
- WordPress multisite,one theme,and different languages?
- Removing /blog/ from multisites cause infinite redirection
- Multiple WordPress Blogs on one host, using 1 WordPress installation, using multiple templates
- turn single domain off
- WordPress Multilingual Theme using Multisite
- How can I update dev links for a live site?
- Entry page for a wordpress multisite
- WordPress with Tor Onion Service (dual .com & .onion domains for same website)
- Use external database with local multisite
- Issue with wp_get_attachment_url() function for multisite
- How to set up wordpress domain mapping on MAMP Pro
- How to show different sub sites based on Member’s user name In word press?
- Debugging unserialize errors [closed]
- Multisite / Network – Stable?
- User Role is Not Specifying in WordPress Multisite?
- Problem in logging in as admin
- WordPress Multisite Dilemma!
- Why WordPress w/ Nginx Multisite Only Lets Admin Upload ZIP Plugins But Not Themes? [closed]
- Certain lines added to our wp-config.php file are being removed, every day
- How to use the same users table on multiple wordpress sites
- Multisite: How to get a list of sites by locale
- Multisite subdirecty added inside URL to uploaded files
- local wordpress multisite not working on AWS development server “error establishing database connection”
- Is it better to embed widgets on posts or pages?
- Remove multisite part from wordpress multisite upload directory
- Can’t activate a user on multisite install
- WordPress Multisite – Auto enable theme
- A different role for each site in a multisite
- Nested folder paths for WordPress multisite
- Error establishing a database connection – Multi-site with subsite don’t exisit [duplicate]
- Network created blogs URL
- WordPress Multisite – How to backup only 1 child website database (not everything)?
- How to tweak page links in WordPress Multisite
- Multisite subsite expiration