Hmmm, okay I am now facing a new problem. I have tried several different methods of trying to log the web user out but for some reason, modx still appears to have them logged in.
Scenario:
I am echoing out the current user’s username in the header.
If I go to the login page, I log in as admin and the username in the head reads admin, the login form is replaced with a link to logout.
If I click log out, the logout link is then replaced with the login form again. However, the username is still reading as Admin? I have read about using the ! to force things to not be cached, but this doesn’t seem to do anything either?
I have gone through the actual files and read through the php, in the login.class there is only a single reference to logout and that is creating the link, the rest is within the snippet and it is hard to say how exactly it is telling modx to log the web user out?
Any ideas?
Thanks,
MjMAC87
Edit: Okay, I think I have worked it out lol, sorry, first time using a proper CMS, normally use to using my own etc. Found it was due to the resource being cached, I would have thought that if the tags where all set to be not cached it would work. Anyway, all working now