-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Oh... That is a bit more nasty now that I take a closer look...
Ideally, I'd redesign the thing to be a little less tricky, if
possible.
Failing that, you should probably write it as:
<cflock scope="application" ...>
<cfset Temp = Application.UsersLoggedIn>
</cflock>
<CFIF #STRUCTKEYEXISTS(Temp, USERIDATDOOR)#>
<cflock scope="application" ...>
more application settings
</cflock>
<cflock scope="session" ...>
more session settings
</cflock>
</cfif>
- -Zac
> What kind of scope though?
>
> In this particular case, yes. Lock the whole CFIF block w/ an
> exclusive lock.
>
> Regards,
> Zac Bedell
>
> > Ok, thanks for that. I though I was getting the hang of it till I
> > came across a huge cfif with a few application and sesion vars in
> > it.
> > starts like this
> >
> > <CFIF #STRUCTKEYEXISTS(APPLICATION.USERSLOGGEDIN, USERIDATDOOR)#>
> >
> > more application settings
> >
> > more session settings
> >
> > more
> >
> > more
> >
> > </cfif>
> >
> > I can't just lock the whole cfif, can I?
> >
> > I think Ben needs to write a book on just locking in cf. :)
> >
> > Derek
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>
Comment: Please use PGP!!!
iQA/AwUBOYgsBAraVoMWBwRBEQK0TACg9H4PB6JsO4zBEGR1FyWCm8OjcgEAn2/h
xJOIC08Ev7FDrpngLOlMMm/p
=GE/m
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.