We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38417
    • 92 Posts
    After log out my member page is still visible in the menu of my site. This occurs when I am logged in in MODX. When log out or flush all sessions from MODX the member page disappears and appears as it should be when logging in and out. Is this correct? I am using MODX Revolution 2.2.2-pl (traditional) and Login 1.8.0 In other versions (Revo 2.2.0 and Login 1.7.3) this didn't happen.

    Ad. [ed. note: showa26 last edited this post 14 years, 3 months ago.]
      • 37131
      • 111 Posts
      I have similar problem - after logout access to members-only page and Unauthorized page is diaplayed. In Firefox however, even after Flushing permissions and clearing caches MODX displays members only page for logged out user.
        ---
        Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding
        • 39932
        • 483 Posts
        Are you certain that the user is logged out? That is, Login will "fail" to log out quietly. So, if it is still displaying the user or the member page, it means that Login never received the Logout instruction.

        Are you using an AJAX Login or does Login refresh the page?
          Website: Extended Dialog Development Blog: on Extended Dialog
          Add-ons: AJAX Revolution, RO.IDEs Editor & Framework (in works) Utilities: Plugin Compatibility List
          Tutorials: Create Cross-Context Resources, Cross-Context AJAX Login, Template-Based Actions, Remove Extensions from URLs

          Failure is just another word for saying you didn't want to try. "It can't be done" means "I don't know how".
          • 38417
          • 92 Posts
          It only happens when you are logged in in manager and log in and out your site using the same browser. Using another browser or log out from manager and try to log in and out from your site it functions fine.
            • 39932
            • 483 Posts
            Yeah. AFAIK, that can't be fixed right now. When you logout, it wants to logout of all contexts, but when you login, it only logs in to the contexts that the login controls. I always do my debugging/viewing in another browser instance.

            In other words, login is particular. Logout is everything, but a "web context" logout cannot override the "manager context" login. So you stay logged in. I imagine they made it this way after 2.2.0 because it affected MODx users negatively and may have been a security issue (That's just a guess). [ed. note: fuzzicallogic last edited this post 14 years, 1 month ago.]
              Website: Extended Dialog Development Blog: on Extended Dialog
              Add-ons: AJAX Revolution, RO.IDEs Editor & Framework (in works) Utilities: Plugin Compatibility List
              Tutorials: Create Cross-Context Resources, Cross-Context AJAX Login, Template-Based Actions, Remove Extensions from URLs

              Failure is just another word for saying you didn't want to try. "It can't be done" means "I don't know how".
              • 3749
              • 24,544 Posts
              It's hard to know what would be best for previewing. There are a lot of times when it's convenient to be able to see unpublished and hidden resources in the front end. OTOH, it confuses a lot of users when they try to test things.

              The bottom line is that the only way to see the site as a real visitor will see it is to use another browser where you're not logged in to the Manager. I doubt if that will change unless "view as anonymous" and/or "view as a particular user" features are added.


              ------------------------------------------------------------------------------------------
              PLEASE, PLEASE specify the version of MODX you are using.
              MODX info for everyone: http://bobsguides.com/modx.html
                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
                • 37131
                • 111 Posts
                After some testing I've finally understood what you have said here smiley
                So, it works this way even if I am still logged in manager as different user in one browser.
                Thanks for your help smiley
                  ---
                  Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding