you mean abandoning the session? ... Yea, Tapestry has a fairly hefty login-logout architecture, which theoretically prevents people from abandoning content -- it's still possible to do it, but you'd have to work pretty hard at it. If you did manage it, unlocking the record wouldn't be tremendously difficult.
Under normal conditions any content you have open gets closed automagically when you log out or are automagically logged out by the application ( which happens after [x] idle time if keep alive isn't turned on for your session, or if you close the browser or type in a different url ). Most applications probably won't have this luxury, so you're probably right, the file-system solution is probably more appropriate in this instance, especially since you're wanting to lock access to a file and not to a database record as Tapestry does. S. Isaac Dealey Certified Advanced ColdFusion 5 Developer www.turnkey.to 954-776-0046 > yep, but I am not using a DB on this one, and how does it react if someone > doesnt go thru the actual process hence the timestamp check thingy? > -----Original Message----- > From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] > Sent: 16 October 2002 16:31 > To: CF-Talk > Subject: Re: 'Locking' a process >> Anyone got any ideas on how to do a pseudo lock on a process within an >> application? >> My example is that I am reading from an .xml file whose contents can be >> edited and then updated. I want to be able to lock this process so no >> other >> user can overwrite the data while another user is performing the action >> on >> it (or at least flag the fact that its open by another process.) > Tapestry does this with all the content records -- they're flagged in the > db > as "in use by user [x] with privelegdes [RWED]" -- if another user has a > record open with more than R privilege, other users get only R privilege, > regardless of their role or permissions, until the first user closes the > record. > Let me know if you'd like a more thorough explanation of how it's > accomplished. > S. Isaac Dealey > Certified Advanced ColdFusion 5 Developer > www.turnkey.to > 954-776-0046 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

