The invention discloses a state detection method and device based on front and back end cooperative
authentication, a medium and equipment. According to the method and the device, the
verification request which is submitted by the front end and comprises the UKEY serial number, the current local
timestamp, the historical back-end
timestamp and the signature value is received, so that high-
safety monitoring and management of the UKEY connection state are realized. Firstly, a
verification request is subjected to signature
verification, the continuity of a current local
timestamp and the consistency of a historical timestamp are verified, and the integrity and legality of the verification request are ensured. And if the verification is passed, resetting a
loop counter associated with the current session, generating a new timestamp, returning the new timestamp to the front end, updating a timestamp
record of the front end, and maintaining the validity of the session. If the verification fails or the verification request is not received, the circular counter is accumulated until the preset threshold value is reached, and a service blocking mechanism is triggered to terminate the current session, so that illegal operation and abuse of the UKEY are effectively prevented. The problem that the connection state of the UKEY cannot be accurately detected and verified in the prior art is solved.