On 8/25/07, Brent Nicholas <[EMAIL PROTECTED]> wrote: > Will this work? THe intention is to set that value that GetAuthUser() > returns to 'emp_id' for use everywhere. However it seems the child > Application.cfc is still returning the 'domain\username', while the > index.cfm(5) seems to get the intended value just fine.
Well, you have to understand the Application.cfc lifecycle to see why it's slightly different to regular CFCs... I would suggest moving this code: > <cfoutput>#GetAuthUser()# |#this.name#|</cfoutput> - test before > cflogin is called: returns domain/username > > <cflogin applicationtoken="#this.name#"></cflogin> > > <cfoutput>#GetAuthUser()#</cfoutput> - test after > cflogin is called: returns domain/username ...into onRequestStart() instead and see whether that produces the expected result. There are certain things you can't do reliably in the pseudo-constructor of Application.cfc based on what I've seen on various lists and problems people have run into. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm CFCDev is supported by: Katapult Media, Inc. We are cool code geeks looking for fun projects to rock! www.katapultmedia.com An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
