Set login cookie for two domains
-
I have a single WordPress installation that’s accessible via two domains:
- urbangreenbluegrids.com shows the English version of the site
- groenblauwenetwerken.nl shows the Dutch version of the site
The two versions of the website link to each other with a language switch.
The English domain is the main domain, and the Dutch domain is mapped to the English domain name.
When a user logs into the admin via the English domain name, he is logged in and the admin bar shows up in the front end of the website. The problem is that when the user switches to the Dutch version of the website, the admin bar doesn’t show up. That’s because the login cookie has only been set for the English domain name.
How do i make sure the admin bar shows up on the Dutch version of the website too? My guess is that an additional authentication cookie will have to be set for the Dutch domain name when the user logs in. Can i do that somehow? Any other suggestions?
Thanks!
The page I need help with: [log in to see the link]
- The topic ‘Set login cookie for two domains’ is closed to new replies.