Brad or Dave... I take it that I don't want to have one unique name, eh?
Would it make more sense to do something like the code snippet below? A
combination of a descriptive phrase and a unique identifier? Thanks, Che.
<cflock name="sessioncart-#session.sessionid#" type="exclusive"
timeout="20">
<cfset structDelete(session.cart, url.sku)>
</cflock>
-----Original Message-----
From: Dave Watts [mailto:[email protected]]
Sent: Wednesday, September 09, 2009 5:19 PM
To: cf-talk
Subject: Re: Quick question on cflock...
> 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.
> :)
Except that if you remove the hashes, you'd have a single name
"session.cart" for all shopping cart locks across all sessions. D'oh!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:326189
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4