There are 2 who can update pageX. When they login in, they get on their main page, there is a link to the form to update pageX. When somebody klicked that link, and is in the update field, a message should be displayed at the other person if he klicks the "update page" link, while the other is still busy (to protect the file for overwriting).
I had a way to do this:
When one of them klicks the link, a temporary file gets created.
When the other person klicks the link, it first checks if the temp file is there, if so --> "plz wait" message.
When the first person klicks the submit button to update his page, I delete the temp file right after the data has been written to the page he wanted to update.
The problem is: if the updating person closes his browser without running the script to delete the temporary file, it will be there forever.
I believe there are better ways to do this. Do you have any suggestions?