cflock usage
I have a process that reads an ID from a table, increments it by 1 then calls several pages that write the new ID to different tables. I want to use cflock to prevent a second user from reading the ID before it gets incremented and written back out. This process can happen on several different pages. If the lock name is universal across the site does CF prevent it from running on page2.cfm if page1.cfm is running it and it's locked? My code looks like this:
<cflock name = "ConnectBack" timeout = "50" type = "Exclusive">
!- Get current ID
!- Increment it by one
!- Cflocation pages that write it out to new tables
</cflock>
Thanks....
