We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36911
    • 2 Posts
    Hello,

    Im quite new to modx (and to web development in general), and experiencing my first issue.
    I use modx rev. 2.1.3, Login 1.6.5. I have a multiple domain setup for 3 domains. Each site does hold a little product presentation and a download area, that should be accessible after login.

    The problem: after typing in the login credentials and clicking the button, the page just goes white. When you navigate into the addressbar and hit return one more time, the login page is loaded corretly and the user is logged in. The problem seems to be only the redirecting part.
    This is my Login snippet call:
    [[!Login? &loginTpl=`lgnLoginTpl` &loginResourceId=`1` &logoutResourceId=`1`]]


    I changed the sites to redirect to a few times, used the not-personalized version of the login template, changed the order of the parameters, deleted the space between the parameters (read that in the forum somewhere..) but no change at all.
    Modx doesnt give me any errors in the error log. The problem occurs on all browsers, tested on several machines.

    Btw, both redirects (login and logout) do not work.
    Can anybody help me on this one? :/ If any more info is needed let me know.
    Aaaand i hope my english is comprehensible smiley

    Fredrik
      • 3749
      • 24,544 Posts
      You might try adding &contexts=`web` or &contexts=`web,context2,context3` (using the actual context names).
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 22303 MODX Staff
        • 10,725 Posts
        If each Context is a different domain, they will each have different sessions and you can't login to multiple Contexts represented by different domains. This will only work with sub-domains and only if you configure PHP sessions to handle subdomains, e.g. .domain.tld for session.cookie_domain (or session_cookie_domain MODX System/Context Settings)
          • 36911
          • 2 Posts
          Thanks for your replies.
          To get my multiple domains to work with modx U used a tutorial I found on the web, but i somehow had the suspicion that it wouldn't be that easy.
          I now got a sole installation for every website, all on one database until I can convince my boss to change the proxider xO

          btw, love your blog BobRay, helped me very much to get started with modx smiley