Hi Fellow developers,
I have a modx driven multilingual site which uses multiple domains for language management.
So the uk version would be example.co.uk
The Spanish version would be example.es
etc...
How can i re-configure the modx session script to allow for any sessions which are set on one of the domains to be accessible across all of them. This is needs to maintain a persistent login as well as other user relevant information when a user changes language and therefore moves from one domain to another.
Thanks
-
MODX Staff
- 10,725 Posts
Unfortunately, a PHP session is limited to a specific domain (or all subdomains of a specific domain). You cannot share a PHP session across different domains. Perhaps if you describe what sessions are being used for, someone might be able to suggest an alternative approach.