I’m running Modx Revo 2.7.3 and currently using “Login” and “Wayfinder” extras on my website to build customised content relating to the user that logs in.
So I don’t appear to have problems with the user(s) logging in and seeing their respective content only. It’s working okay as far as I know.
Where i’m having problems is logging the user out. My Wayfinder Chunk gives me a logout link as per below, which when clicked, follows through to a logout and I arrive at the login page.
<!--innerTpl--> <div id="menu"> <ul> [[+wf.wrapper]] <li><a href="[[~1&service=logout]]">Logout</a></li> </ul> </div>
Above resource ~1 is the “login page” with following snippet call for login extra:
[[!Login? &loginTpl=`lgnLoginTpl` &logoutTpl=`lgnLogoutTpl` &errTpl=`lgnErrTpl` &loginResourceId=`9` &logoutResourceId=`10` ]]
When i try to log back in as another user, it authenticates and logs in, but as the previous user! So is there a problem with the logout not completely killing my session?
I’ve put the following code in the top of my template for the resource which acts as the entering page for all users. Even when i log in (successfully authenticating as another user) I see the previous user’s username and user id. Totally weird, has anyone come across this before?