We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37327
    • 8 Posts
    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
      • 22303 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.