Something really interesting – well, at least if you try to fix it and it doesn’t work :)…
I’ve tried to use GetAuthUser() within a new ModelGlue application I’m just writing. The idea was to put the username of the person currently logged in into the event by using arguments.event.setValue within a controller method. For whatever reason it stayed blank and contained the correct user not before the next request. It took me a while to find out the following:
GetAuthUser() doesn’t return the correct user immediately after the <cfloginuser…> tag as I thought. It needs to go after the closing </cflogin> tag to contain the username.
Apparently I have always done it that way before, but for this particular app, I wanted to update the event with the username immediately after the login, so I’ve put it in there. As said above – no big issue, but good to know 🙂