[0017] Hereinafter, the present invention will be described in detail with reference to the drawings and in conjunction with the embodiments. It should be noted that the embodiments in the application and the features in the embodiments can be combined with each other if there is no conflict.
[0018] figure 1 It is a detailed flow chart of the present invention, including the following steps:
[0019] Step 101: The source user opens the web page, automatically loads the Flash plug-in, and the Flash plug-in establishes a permanent connection with the communication server.
[0020] In the above technical solution, step 101 includes the following process:
[0021] The source user opens the web page and automatically loads the Flash plug-in. The Flash plug-in establishes a permanent connection with the communication server by calling the XMLSocket class.
[0022] Step 102: When the source user starts timing or timing, send timing data information instructions to the communication server through the Flash plug-in and authenticated by the communication server. After the authentication is passed, the communication server forwards it to the synchronous storage server, and the synchronous storage server performs storage and update. The synchronization storage server sends the updated timing data information through the communication server to all target users and source users connected to the communication server who need to synchronize timing, so as to strictly ensure the synchronization of timing information.
[0023] In the above technical solution, step 102 includes the following process:
[0024] 2a) When the source user starts timing or timing, call the XMLSocket method through the Flash plug-in to send timing data information instructions to the communication server and the communication server will authenticate:
[0025] When the communication server receives the timing data information instruction sent by the source user, it authenticates the timing data information instruction. The authentication includes but not limited to: source user identity authentication, data instruction authority authentication (whether the source user has the instruction to send timing data information Authorization), source user instruction operation target authority authentication (whether the timing data information instruction sent by the source user can access the target user's authority), target user authority authentication to the source user instruction (whether the target user has the timing data information sent by the source user Command authority).
[0026] 2b) After all authentications are passed, the communication server forwards to the synchronous storage server, and the synchronous storage server stores and updates. The synchronous storage server sends the updated timing data information through the communication server to all the targets connected to the communication server that need to synchronize timing. Users and source users to strictly ensure synchronization of timing information.
[0027] Step 103: When the target user opens the webpage, the Flash plug-in is automatically loaded, the Flash plug-in establishes a permanent connection with the communication server, and the target user and the source user Flash plug-in start to receive timing synchronization information sent by the communication server.
[0028] In the above technical solution, step 103 includes the following process:
[0029] When the target user opens the web page, the Flash plug-in is automatically loaded. The Flash plug-in establishes a permanent connection with the communication server by calling the XMLSocket class. The target user and the source user Flash plug-in begin to receive the timing synchronization information sent by the communication server to the target user and the source user.
[0030] Step 104: When the target user and the source user Flash plug-ins receive the timing data information sent by the communication server, they call the webpage function, and the webpage function logically processes or displays the passed timing information, that is, realizes webpage timing synchronization.
[0031] In the above technical solution, step 104 includes the following process:
[0032] When the target user and source user Flash plug-ins receive the timing data information sent by the communication server, they call the JavaScript function of the web page through the call method of the ExternalInterface class, and pass in the received timing data information, and the JavaScript function performs logical processing on the passed timing information Or display, that is, to achieve web page timing synchronization.
[0033] figure 2 It is the structural principle diagram of the present invention, and the detailed description is as follows:
[0034] Source user A opens the web page, automatically loads the Flash plug-in, and the Flash plug-in establishes a permanent connection with the communication server;
[0035] When the source user A starts timing or timing, it sends timing data information instructions to the communication server through the Flash plug-in and is authenticated by the communication server. After the authentication is passed, the communication server forwards it to the synchronous storage server, and the synchronous storage server stores and updates synchronously. The server sends the updated timing data information through the communication server to all target users B, C and source user A connected to the communication server that need to synchronize timing.
[0036] The above technical solution includes the following processes:
[0037] 2a) When the source user A starts timing or timing, call the XMLSocket method through the Flash plug-in to send timing data information instructions to the communication server and the communication server will authenticate:
[0038] When the communication server receives the timing data information instruction sent by the source user A, it authenticates the timing data information instruction. The authentication includes but is not limited to: source user identity authentication, data instruction authority authentication (whether source user A has the timing data information Instruction authority), source user instruction operation target authority authentication (whether the timing data information instruction sent by source user A can access the authority of target user B, C), target user's authority authentication of source user instruction (whether target user B, C Have the authority to receive timing data information instructions sent by source user A).
[0039] 2b) After all authentications are passed, the communication server will forward it to the synchronous storage server, and the synchronous storage server will store and update. The synchronous storage server sends the updated timing data information through the communication server to all the targets connected to the communication server that need to synchronize timing. Users B, C and source user A.
[0040] When target users B and C open the webpage, the Flash plug-in is automatically loaded, the Flash plug-in establishes a permanent connection with the communication server, and the target users B, C and source user A start to receive the timing synchronization information sent by the communication server
[0041] When the Flash plug-ins of target users B, C and source user A receive the timing data information sent by the communication server, they call the webpage function, and the webpage function logically processes or displays the passed timing information, that is, realizes webpage timing synchronization.
[0042] Note: Users B, C, and any two or three of users A, B, and C send timing data information commands at the same time, and the synchronization authentication process is the same as above.
[0043] The present invention also discloses a system for realizing timing security synchronization based on web pages, including: source user, communication server, target user: the communication server authenticates the received source user's authority to send timing data information instructions, and after the authentication is passed, the target The user has the authority to receive the timing data information instruction for authentication, and after the authentication is passed, the communication server sends the acquired timing data information to the synchronous storage server;
[0044] The synchronous storage server stores and updates timing data information and sends the updated timing data information to the target user and the source user.
[0045] Wherein, before the communication server authenticates the received authority of the timing data information instruction sent by the source user, it also includes authentication of the identity of the source user.
[0046] Wherein, the communication server authenticates the authority of the received timing data information instruction sent by the source user, and after the authentication is passed, also authenticates the target authority operated by the source user instruction, that is, the timing data information instruction sent by the source user Whether the authorization of the target user can be accessed for authentication.
[0047] Wherein, before the communication server authenticates the authority of the received timing data information instruction sent by the source user, it also includes: the source user opens the webpage, automatically loads the Flash plug-in, and the Flash plug-in establishes a permanent connection with the communication server.
[0048] Compared with the prior art, the present invention has the following advantages: no need to download any controls, the timing can be safely synchronized on the web page, and the time is safely synchronized regularly to determine that the timing information is accurate; the source user and the target user The timing is exactly the same, so as to ensure the consistency of the content on the display, and the synchronization is timely and efficient; the software and hardware requirements are relatively low, and it can be easily embedded in other systems for application; the technology is simple to implement, the idea is clear, the application threshold is low, and the technology It is easy to popularize and be accepted.
[0049] The above are only preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various modifications and changes. Any modification, equivalent replacement, improvement, etc., made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.