if( !isset($_SESSION['searchengine']) && !isset($_SESSION['keyword']) ){
$_SESSION['searchengine']= $searchvalues['searchengine'];
$_SESSION['keyword']=$searchvalues['keyword'];
}.domain.tld
You manager should only be accessible on one domain when using a multi-context configuration. And no, you cannot share PHP sessions across different domains, only for a specific domain, or by prefixing a domain with a ., across all sub-domains within that domain.
No I haven’t set anything.
Context will be different domains, not sub-domains. Domains are on a shared-hosting, added as add-on domains.
So, isn’t it possible to set session if we have different domains that we want to manage through a central modx manager?
Thank you
I’m not following how this is restrictive at all. It’s simply how PHP sessions work in a browser. The session cookie is either set for a specific domain or any subdomain of a specific domain. The manager session would be separate from the domain specific sessions for each web site, so I don’t see how any session data would be shared between these different domains. When they login to the single manager URL on the domain you configure/designate for the manager, they get a session cookie for the manager’s domain.
Thanks for the explanation OpenGeek.
I have no problem with manager being accessible on one domain, what I want is to add session variables for each domain, not to share any session data between these different domains.
This is very restrictive then, if you want to use multi domains with one central manager. if I understand you right, this is not something possible technically for now or future releases, right?
I’m not following how this is restrictive at all. It’s simply how PHP sessions work in a browser. The session cookie is either set for a specific domain or any subdomain of a specific domain. The manager session would be separate from the domain specific sessions for each web site, so I don’t see how any session data would be shared between these different domains. When they login to the single manager URL on the domain you configure/designate for the manager, they get a session cookie for the manager’s domain.
The session cookie is either set for a specific domain or any subdomain of a specific domain.
Quote from: OpenGeek at Nov 03, 2010, 11:31 AM
The session cookie is either set for a specific domain or any subdomain of a specific domain.
So each domain will have it’s own session and only it’s own session.