> 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.

Reply via email to