Categories as sub-domains -> How to detect login in main domain?
-
Im using the WP Subdomains plugin, so that I can turn any category into a subdomain (mysite.com -> category.mysite.com)
But now when im in the category (subdomain) or in a post in that category, it wont detect anymore than Im logged in, in the main site.How can I make it detect that I am logged in the main site, when I am in a category?
For example, i made a category “animals”, so now my category is accesible with animals.mysite.com
But when Im inside animals.mysite.com, wordpress doesnt detect anymore that im logged in on mysite.com … so i need to write again info for comments, and the Edit Post link doesnt show.I was looking at this post and this piece of code:
define('COOKIE_DOMAIN', '.mysite.com'); define('COOKIEPATH', '/');
but Im not quite sure if it’s what Im looking for.
How can I fix this??
Thank you!
- The topic ‘Categories as sub-domains -> How to detect login in main domain?’ is closed to new replies.