[thelist] CF Variable Locking and CFLOCATION

Raymond Camden jedimaster at macromedia.com
Fri May 18 09:14:47 CDT 2001

I will check with an internal engineer, but I _believe_ this is safe. By the
way, you should be using a ReadOnly lock, not an exclusive lock.

Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email   : jedimaster at macromedia.com
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Joshua OIson
> Sent: Friday, May 18, 2001 10:03 AM
> To: thelist at lists.evolt.org
> Subject: [thelist] CF Variable Locking and CFLOCATION
> If I store a URL in a session or application variable and use it in a
> cflocation WITHIN a cflock (exclusive), does the lock get released by the
> cflocation?  Or is that a memory leak?
> example:
>   <cflock timeout="30" throwontimeout="No" type="EXCLUSIVE"
> scope="SESSION">
>     <cfset session.myid = get_max.id>
>     <cflocation url="#cgi.script_name#/myid=#session.myid#" addtoken="No">
>   </cflock>
> [Notice that the cflocation is WITHIN the cflock]

More information about the thelist mailing list