Assuming you're on CFMX 7 or 8, you no longer need to LOCK on READ, so if 
you're concerned about race conditions on the WRITE, just do:

<cflock scope="session" type="EXCLUSIVE" timeout="10">
<cfset session.foo = application.bar> 
</cflock>

(timeout can be whatever is appropriate)
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323032
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to