Posted by Angelos on 11/15/05 11:10
Hello, I am developing a CMS and I would like add the following
functionality:
- User A logs in.
- User B logs in.
- User A Edits page X
- User B Is informed that User A is loged in and edits page X so user B is
not able to edit page X until user A saves the page.
Ofcourse that's not so difficult if you set a flag in the database
for example that the current document is being edited, and remove the flag
when the user saves the document and exits.
BUT what happens if user exit the editing page without folowing any link or
submit button that I can control. What happens if his computer
restarts/crashes or he kills the browser or if his internet connection fail.
Database will have the document flaged as being edited by User A.
Do you know any good way of avoiding that problem or if you don't already
know, can you think of something similar ?
Thanks Angelos.
[Back to original message]
|