Why do you lock? If multiple threads remove keys at the same time, it won't hurt, right?
On 8/3/07, Brad Wood <[EMAIL PROTECTED]> wrote: > We just do this: > > <cflock scope="session" type="EXCLUSIVE" timeout="10"> > <cfloop collection="#session#" item="deleteme"> > <cfif not deleteme is "cfid" and not deleteme is "cftoken"> > <cfset rc = StructDelete(session, "#deleteme#")> > </cfif> > </cfloop> > </cflock> > > Then, everything BUT cfid and cftoken get deleted. > > ~Brad > > -----Original Message----- > From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] > Sent: Friday, August 03, 2007 10:19 AM > To: CF-Talk > Subject: RE: Forcing a session to end... > > You'll never be done if you sit around thinking about and guarding > against > something that some developer a year down the road MIGHT do. > > ...:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. > Bobby Hartsfield > http://acoderslife.com > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285378 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

