Locking Database Records
How do you go about locking database records in a web application app? Say User 1 selects a record to edit and User 2 selects that same record a few seconds later, how do you deny User 2? Update a field in the database? And say User 1 is on the edit screen for 20 minutes, made a couple of changes, but never clicked submit? Do you time them out? Do you save the record then time them out? Would ajax work here? Any suggestions on how one might due this? (Using Coldfusion 8 and MySQL 5)
(Boy, that's a lot of questions)
