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

    First of all, I'm using MODX Revolution 2.2.10-pl and the Login (1.8.1) package. When I try to login in my web context with a user everything works fine and the login it's done but if I swith the resource (for example, if I go to Home page), the user information is lost and it appears that nobody is logged in. If I go back again to the Log in resource, the user is again logged in.

    Any suggestion of what is going on?

    Thanks in advance
      • 22303 MODX Staff
      • 10,725 Posts
      Sounds like you have simply cached part of the Home page that should dynamically display the user information. Dynamic sections of a Resource should be called non-cacheable.
        • 45302
        • 2 Posts
        Thank you for the quick answer, dynamic sections are non-cacheable and problem still persist. I make the next call to login:

        [[!Login? &loginTpl=`lgnLoginTpl` &logoutTpl=`lgnLogoutTpl` &errTpl=`lgnErrTpl` &loginResourceId=`1` &logoutResourceId=`1`]]

        and it seems that user is only logged in the loginResourceId, if I change the resource the user change to anonymus but if I come back to the loginResourceId it appears again logged in