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

    I have 1 domain and 1 subdomain, i want to share session across them.
    i have read many articles and modx forum and all i came to know is setting "session_cookie_domain" and logging to all contexts at a time using "&context=1web,sub1’" is enough, so added it and tried to login but its not working.i have even configured one subdomain using context and its working fine also...no issue with it.
    I have created one user and changed its permission to admin so there shouldnt be any permission issue. but when i try to login it just doesnt work and doesnt even show message something like "invalid username and password" like this....

    Any idea whats happening exactly ??
    I am sharing modx admin username and password in case anyone wants to take a look modx manager area to see if i have done any wrong step.

    www.capmatrix.in/modx2/manager
    uname : admin
    upass : amitpatil

    Annnnyyyy suggestion on this is welcome and will be much helpful smiley
    thanks in advance

    Amit Patil
      • 36341
      • 19 Posts
      when i tried to debug the modxuser.class.php to find whats the exact problem and printed $this object.
      and found that there is some data loss...below are details when i login to "web" context and "sub1" context

      "web" context
      =================================
      [id] => 2
      [username] => test2
      [password] => BXA/9cuQVnXnRk1CsAo6w6o5WlkknVjB7ecgk7PS9kk=
      [cachepwd] =>
      [class_key] => modUser
      [active] => 1
      [remote_key] =>
      [remote_data] =>
      [hash_class] => hashing.modPBKDF2
      [salt] => 023d4a2bfd9b529e6597632727443ca0

      "sub1" context
      =================================
      [id] =>
      [username] => (anonymous)
      [password] =>
      [cachepwd] =>
      [class_key] => modUser
      [active] => 1
      [remote_key] =>
      [remote_data] =>
      [hash_class] => hashing.modPBKDF2
      [salt] =>



      Can someone tell me what is happening huh :’( :’( :’( huh
        • 36341
        • 19 Posts
        I think i have solved this.....Everything was working...It was browser caching issue
        DUMBBBB grin grin grin grin grin