Good day, help setup or explain what the problem is.
I read everything what I could find about settings subdomains, also about setting sessions, but I can't understand what the problem is.
System features:
MODX Revolution 2.2.7-pl
PHP Version 5.3.24
MySQL 5.5.25
The idea is as follows. Have a domain: domain.com
added and setting two subdomains: sub1.domain.com, sub2.domain.com
It is established:
session_cookie_domain: .domain.com
Login snippet call:
[[!Login? &contexts = `web,sub1,sub2`]]
Task of is as follows that the user can Login from the main site: domain.com and access to resources: sub2.domain.com
Also, the user can Login from subdomains: sub1.domain.com and access to resources: sub2.domain.com
Resources sub2.domain.com divided into groups by.
The problem is this, when the user Login on a domain or subdomain (everything is fine).But moving to a different subdomain or domain, user need again Login. And most interestingly, there is a come back to login Page. Domain or subdomain asked Login again
In Login &contexts = `web,sub1,sub2` - tried all possible options.