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
"Seth Petry-Johnson" <[EMAIL PROTECTED]> wrote in message
news:<00a901bffc18$4107ad20$[EMAIL PROTECTED]>...
> > Does anyone know how to go about locking this line?
> >
> > <CFSET APPLICATION.USERSLOGGEDIN["#Session.UserID#"].TIMECREATED =
NOW()>
>
> <!--- create copy of Session.UserID --->
> <!--- substitute SCOPE param for NAME if using CF 4.5 --->
> <CFLOCK NAME="#Session.SessionID#" TYPE="readonly" TIMEOUT="30">
> <CFSET localUserID = Session.UserID>
> </CFLOCK>
> <!--- now write the application param --->
> <CFLOCK NAME="#Application.ApplicationName#" TYPE="readonly" TIMEOUT="30">
> <CFSET UsersLoggedIn[localUserID].TimeCreated = Now()>
> </CFLOCK>
>
> Regards,
> Seth Petry-Johnson
> Argo Enterprise and Associates
>
>
> --------------------------------------------------------------------------
----
> 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.
------------------------------------------------------------------------------
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.