hey guys, hope u can help with this.
i've a few tables in which records can be locked while a user is editing it. So, for example the table 'Customers' has this field called 'Record_Status' whereby 0 indicates LOCK, while 1 indicates FREE. LOCK means the record can be viewed and not edited at that time. Once the user is done editing the record, it again returns to FREE. my concern is that once set to LOCK, some users may use the record or leave their browser idle...thus it remains as LOCK..
How can i implement a system where after say, 10 minutes, a record goes to FREE again?