Edit: Post has been modified to consolidate information regarding the situation.
I have several subdomains set up as contexts in my ModX Revo 2.2 install. When I log in to my primary domain, I would like it to share the session with my subdomains. I am using the Login addon. This post,
http://stackoverflow.com/questions/9761447/modx-revolution-doesnt-switch-context, indicates that I must check for "load" permission. According to Login and
http://forums.modx.com/index.php/topic,64442.msg364741.html, I have made sure of the following:
- My Login uses the &contexts property for all subdomains
- I have set session_cookie_domain to .mydomainname.tld. I have also tried *.mydomainname.tld. Every time I change the variable, I lose access to the manager and it is difficult to get it back. It has now been reset back to default.
- I have set up my administrators user group to have full permissions (including load) on all contexts.
- I have verified that anonymous users have access of 9999 (with load only) to all contexts.
- I have also tried making sure that the context minimum role is 9999. When this did not work, I tried with minimum role of 0. Neither achieved any positive results.
Now, to be clear: I am using Login as the indicator of the sharing as the new contexts have no content. However, when I log in to the primary domain, and move to a subdomain, Login is still showing the standard Login screen on the subdomain. On the primary domain, it is showing that I am logged in.
Additional Information: I'm not sure if this is important, but my primary domain is not
www.mydomainname.tld. It is actually
mydomainname.tld. In my experience, this has never changed the behavior of ModX, but could it be affecting the cookie (i.e. why session_cookie_domain does not work properly)?
It is absolutely necessary that the session be shared. The above solutions have worked for others. Am I missing something?
[ed. note: fuzzicallogic last edited this post 11 years, 10 months ago.]