When a user starts to edit a page, send in "edit heartbeats" using ajax.
The heartbeat msg changes f.e. by creating a hash of the edited text every 30 sec.
If the "edit heartbeat" message does not change over time, f.e. 15min, you release the lock, if another user is asking for an edit.
When a user starts to edit a page, send in "edit heartbeats" using ajax. The heartbeat msg changes f.e. by creating a hash of the edited text every 30 sec. If the "edit heartbeat" message does not change over time, f.e. 15min, you release the lock, if another user is asking for an edit.