Except for the fact that session.cart appears to be a struct, and lock names must be a string. You might want to take off those pound signs. :)
~Brad -------- Original Message -------- Subject: Re: Quick question on cflock... From: Dave Watts <dwa...@figleaf.com> Date: Wed, September 09, 2009 3:13 pm To: cf-talk <cf-talk@houseoffusion.com> > Dave, would this be a better approach? Also, can you use any name you want > as long as you are consistent? See below. Thanks, Che > > <cflock name="#session.cart#" type="exclusive" timeout="20"> > <cfset structDelete(session.cart, url.sku)> > </cflock> Yes, that would be a better approach, and yes, you can use any name you want as long as you're consistent. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:326174 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4