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
- Multisite Domain Mapping with SSL
- WP-Admin not working properly at WordPress multisite with subdirectories
- Multisite – Keep users logged in only to their site
- Multisite with Different Domains
- Weird Issue with load balanced WP 3.0 setup
- Multiple domain names under one WordPress Installation
- What is the most comprehensive backup plugin for WordPress (it does not have to be free)? [closed]
- Multisite wordpress and subdomain URL collisions
- WordPress Multisite: Automatically run importer upon creating new site
- Add Rewrite Rule to point to a file on the server
- Multisite WordPress nginx uploaded files throw 404
- subdomain mulitsite on localhost in a subfolder
- Any downsides on using Multisite for many look-alike-websites?
- Multisite Super admin and Network admin emails
- Is there a way to run upgrade.php for one blog?
- How to run a subdirectory multisite install under a subdomain
- Using Two Themes – One for Main Site, One for Ecommerce
- Is it possible to install BuddyPress with blogs installed on several servers? [closed]
- All wordpress network subfolder sites being redirected to main site
- Get current Blog ID in Tinymce Plugin Dialog Window in WPMU
- How can I tell if a wordpress site is running on multisite?
- Adding hreflang to multisite with no plugin?
- possible to combine sites that have lots of content, into multisite?
- Does a single theme license work on multisite? [closed]
- WP Multisite – Additional subdomain on the site for API purposes
- Multisite configuration for multiple domains
- How long is “as long as possible” in wp_cache_set()?
- Multisite Dashboard Always Redirects to Main Dashboard
- WP Multisite child theme: get_template_directory_uri() seeks it’s own subdirectory instead of directory of parent theme
- Multi-site Installation in WordPress | Security & Future Migrations
- Get the latest 3 posts across the network
- Blog broken after changing Site/Home URL
- Autoblog posts in wpms(network) into main site including featured images
- Cron job disappering without notice?
- Avoid landing page redirects issue in wordpress multisite
- How to limit user to login only once per session
- Multisite website configure Domain issue
- Single installation with sub-domains for admin and separate domains for sites
- Map WP Multisite blog.example.com to anotherdomain.com/blog?
- Changing login url