Just setting a binary lock value in the table will lock it for
everybody, including the person who owns the lock and is allowed to edit
it.

My cms uses an application-scoped 2d array that holds the record's
primary key, the user ID of the person 'owning' the lock and a timestamp
value.

Your CF code needs to be able to set the lock (i.e. add to the array)
when desired, break it when the user leaves (remove from the array),
update the timestamp and let another user in if the lock has 'expired'
after a period of inactivity you decide upon.  I also have a separate
'who's on' app that also lets an admin break locks as they see fit.

A bunch of files and stuff is involved in putting something like this
together, but it is absolutely slick when its in place.  I've been
meaning to write it up as a generic howto and post it on my site.  I'll
try to get it done today.

--------------------------------------------
Matt Robertson       [EMAIL PROTECTED]
MSB Designs, Inc.  http://mysecretbase.com
--------------------------------------------
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to