A
Web page control method allowing only one person to edit comprises the following steps that a Worker thread is created, a
timer is defined through the Worker thread, and the
timer is used for receiving messages of a main thread at regular time; when the
timer receives the message of the main thread, the ID where the main thread is located is recorded in the recorder, preset content is generated according to the message of the main thread, the content is stored in the recorder, the message of the main thread is not received by the timer after the threshold time, an instruction for inquiring whether the ID exists or not is sent to the recorder, and if the returned value is true, the main thread is recorded in the recorder; if yes, whether the
current user ID is consistent with the ID in the recorder or not is judged, if yes, editing can be carried out, if not, editing cannot be carried out, and if the return value is false, editing can be carried out. According to the method and the device, the permission check is performed before the user starts editing, so that the problems of conflicts and data inconsistency possibly generated when a plurality of users edit the same resource at the same time can be effectively avoided. And the
data integrity and consistency in Web editing are improved.