Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

jstudios on "[Multisite] Set cookies for mirrored domain (subsite)..."

$
0
0

I have a wordpress multisite at domain.com and I'm using subdomains for all the sites, except the parent one of course.

I am also doing a "symlink" for one of the sites with my hosting company. In other words, in my hosting server, site1.com points to domain.com and WordPress knows that site1.com should show site1.domain.com because of the Domain Mapping plugin.

I'm having a lot of log in/out issues, mainly when logging out though. I notice that I have no choice but to clear the browser's cookies so I can "log out", otherwise I keep getting redirected to the page I was in while staying logged in (when I click on a log out link). I've tried using wp_logout_url() on a link and also a custom sign out page where I run wp_clear_auth_cookie(), but neither of them work. This is only happens at random times though and it works fine for a while after manually deleting the browser cookies.

After doing some research it seems that the way the multisite and domain mapping works causes this issue since I have site1.domain.com hidden behind site1.com and maybe it's creating cookies in a weird way.

What should I do and should I have site1.com everywhere on the Site's Network settings or keep site1.domain.com on some of the settings?


Viewing all articles
Browse latest Browse all 8245

Trending Articles