CFLOGIN madness

by kai on 12/05/2006

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 🙂

Ed September 1, 2006 at 12:00 am

Im 18 and I code CF for a company.
Must say I LOVE IT.
Just got a task to password protect a few folder looking at and found you guys.

Do have an SQL question.
(if you coudl e-mail it would be great)

I notices a while back our server has a SQL injection valnerability. Whats the best way to fix this? From what i know if done rigth peoepl cna gain access to some person data thet may be stored in the DB’s.


Comments on this entry are closed.

Previous post:

Next post: