[thelist] CF Variable Locking and CFLOCATION

Raymond Camden jedimaster at macromedia.com
Fri May 18 12:36:58 CDT 2001


Just got the word back from engineering. We do the right thing w/ the code
below. Although, if you were really worried, you could have done:


   <cflock timeout="30" throwontimeout="No" type="EXCLUSIVE"
 scope="SESSION">
     <cfset session.myid = get_max.id>
   </cflock>

     <cflocation url="#cgi.script_name#/myid=#get_max.id#" addtoken="No">

:)

=======================================================================
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:
>
> [Notice that the cflocation is WITHIN the cflock]
>
> TIA,
> -joshua
>
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list