We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36341
    • 19 Posts
    I tried what u have explained...But it didnt work

    I am using "MODx Revolution 2.0.7" and Login package.
    i have created 2 sub domains using contexts.

    and i tried to log in to all the contexts at same time using as u have suggested.

    [[!Login? &contexts=’web,sub1,sub2’]]

    but it didnt worked, so i added "session_cookie_domain" setting with value ".domainname.com"

    but nothing works...

    adding "session_cookie_domain" even effects MODx manager login...it doesnt allow me to login sometime...it behaves like strange.

    What could be other way to share session huh
      • 36341
      • 19 Posts
      Waiting for reply sad
        • 25663 MODX Staff
        • 12,272 Posts
        It may not have any effect, but I would seriously consider upgrading to the latest 2.1.2 codebase. I know it’s way faster and fixes a boatload of bugs.

        Other than that, your code above has an error. MODX uses backticks, not single-quotes, for Snippet params:

        [[!Login? &contexts='web,sub1,sub2']]


        should be:

        [[!Login? &contexts=`web,sub1,sub2`]]

          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 36341
          • 19 Posts
          @rthrash,

          Many many many manyyyyyyyyyy thanks man, It worked.
          I tried 100 diff ways to solve this problem, even made changes in core code also wink ...i was about to suicide smiley

          It was really a silly mistake....thanks again..Love u