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.]
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
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?
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.
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.]
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
After some testing I've finally understood what you have said here

So, it works this way even if I am still logged in manager as different user in one browser.
Thanks for your help
---
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding