WO2012106951A1 - 一种超时控制的方法、装置及系统 - Google Patents

一种超时控制的方法、装置及系统 Download PDF

Info

Publication number
WO2012106951A1
WO2012106951A1 PCT/CN2011/079045 CN2011079045W WO2012106951A1 WO 2012106951 A1 WO2012106951 A1 WO 2012106951A1 CN 2011079045 W CN2011079045 W CN 2011079045W WO 2012106951 A1 WO2012106951 A1 WO 2012106951A1
Authority
WO
WIPO (PCT)
Prior art keywords
timeout
client
browser user
request
user
Prior art date
Application number
PCT/CN2011/079045
Other languages
English (en)
French (fr)
Inventor
黄智�
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP11858277.4A priority Critical patent/EP2627057A4/en
Priority to US13/339,993 priority patent/US20120209904A1/en
Publication of WO2012106951A1 publication Critical patent/WO2012106951A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/108Network architectures or network communication protocols for network security for controlling access to devices or network resources when the policy decisions are valid for a limited amount of time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/28Timers or timing mechanisms used in protocols

Definitions

  • the present invention relates to the field of communications, and in particular, to a timeout control mechanism in a network system.
  • timeout control In order to ensure the security of user data, various operators provide many security protection solutions. For example, in an existing Web system, there are two ways to control the timeout. One is based on the client's timeout control, and the other is based on the server's timeout control. In the client-based timeout control, since usually one client includes at least one browser user, when the browser user's current operation interface is locked by the client due to timeout, the user can copy the URL (Global Positioning Resource) A new browser user is established in the client to enter the locked operation interface without re-entering the verification information. This timeout control mechanism has security risks. In order to solve this problem, a server-based timeout control mechanism is proposed in the prior art.
  • the server-based timeout control mechanism when the browser user times out, the server interrupts the session with the browser user, thereby preventing the URL from being copied.
  • the server-based timeout control mechanism cannot distinguish which request needs timeout control, and which request does not need to perform timeout control. Therefore, any request sent by the client is time-out controlled, which not only cannot accurately determine the browser. Whether the user actually times out, and there are also drawbacks that may cause the user's timeout control to fail; in addition, the client cannot actively lock the current user interface of the browser user, only when the browser user When the request is made again, the warning that has timed out will be popped up and the operation interface will be locked. Previously, the information of the current user interface of the browser user is public, and there is a security risk.
  • the embodiment of the invention provides a timeout control method, a client, a server and a timeout control system.
  • a timeout control method is used for timeout control of a client, the client including at least one browser user, including:
  • the client sends a client request to the server, where the client request includes a first timeout control identifier, where the first timeout control identifier is used to initiate timeout control for the browser user, and the server maintenance is used to determine the location Determining condition information required by the browser user to time out and generating timeout status information according to the condition information;
  • the browser user's current operation interface is locked when the browser user times out according to the acquired timeout status information.
  • a timeout control method is used for timeout control of a client, the client including at least one browser user, including:
  • a client that includes:
  • a client requesting module configured to send a client request to the server, where the client request includes a first timeout control identifier, where the first timeout control identifier is used to initiate timeout control of the browser user, the server Maintaining condition information required for determining whether the browser user has timed out and generating timeout status information according to the condition information;
  • a timeout status obtaining module configured to acquire timeout status information of the browser user from a server side
  • the client locking module is configured to determine whether to lock the client operation interface according to the obtained timeout status information of the browser user, and if the user has timed out, lock the current operation interface.
  • a server comprising:
  • a service receiving module configured to receive a client request sent by the client, where the client request includes a first timeout control identifier, where the first timeout control identifier is used to initiate timeout control of the browser user;
  • the timeout status determining module determines, according to the first timeout control identifier, that the browser user needs to perform timeout control, maintains condition information required for determining whether the browser user times out, and generates timeout status information according to the condition information.
  • the timeout status information is used to indicate whether the browser user times out, so that the client locks the current operation interface of the browser user when the browser user times out.
  • a timeout processing system including:
  • a client configured to send a client request to the server, where the client request includes a first timeout control identifier, where the first timeout control identifier is used to initiate timeout control of the browser user, and the server maintains And determining condition information required for the browser user to time out and according to the The condition information generates timeout status information; the timeout status information of the browser user is obtained from the server side; and when the browser user times out according to the acquired timeout status information, the current operation interface of the browser user is locked.
  • a client request sent by the client where the client request includes a first timeout control identifier, where the first timeout control identifier is used to initiate timeout control of a browser user;
  • the identifier determines that the browser user needs to perform timeout control, maintains condition information required for determining whether the browser user times out, and generates timeout status information according to the condition information, where the timeout status information is used to indicate the browsing. Whether the user times out, so that the client locks the current operation interface of the browser user when the browser user times out.
  • the timeout control is used to identify whether the request sent by the client requires timeout control, so that the server can start the timeout according to the timeout control identifier. Control, and make the timeout control more accurate, thus improving the security of the client.
  • FIG. 1 is a flowchart of a timeout control method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a timeout control method according to another embodiment of the present invention.
  • FIG. 3 is a flowchart of a timeout control method according to another embodiment of the present invention.
  • FIG. 4 is a flowchart of a timeout control method according to another embodiment of the present invention.
  • FIG. 5 is a flowchart of a timeout control method according to another embodiment of the present invention.
  • FIG. 6 is a flowchart of a timeout control method according to another embodiment of the present invention.
  • FIG. 7 is a client provided by an embodiment of the present invention
  • FIG. 8 is a client according to another embodiment of the present invention.
  • FIG. 9 is a client according to another embodiment of the present invention.
  • FIG. 10 is a block diagram of a server according to an embodiment of the present invention.
  • FIG. 11 is a block diagram of a server according to another embodiment of the present invention.
  • FIG. 12 is a block diagram of a server according to another embodiment of the present invention.
  • FIG. 13 is a block diagram of a server according to another embodiment of the present invention.
  • the embodiment of the present invention provides a timeout control method for performing timeout control on a client, where the client includes at least one browser user, and the method includes:
  • the client sends a client request to the server, where the client request includes a first timeout control identifier, where the first timeout control identifier is used to initiate timeout control for the browser user, and the server maintenance is used to determine the location Determining condition information required by the browser user to time out and generating timeout status information according to the condition information;
  • timeout control method provided by the embodiment of the present invention further includes:
  • the login request includes a first timeout control identifier indicating that the login request needs to perform timeout control, and allowing the browser user to log in to the application after the login request is approved system.
  • the timeout control method provided by the embodiment of the present invention further includes: automatically triggering a client request, and acquiring a response corresponding to the automatically triggered client request to refresh the content in the operation interface, where the automatic triggering client
  • the second request includes a second timeout control identifier, and the second timeout control identifier indicates that no timeout control is required.
  • the timeout control is used to identify whether the request sent by the client needs timeout control, so that the server can start the timeout control according to the timeout control identifier, and the timeout control is more accurate.
  • the client actively obtains the timeout status information of the current browser user from the server, thereby actively locking the current operation interface of the browser user.
  • a timeout control method 100 includes:
  • the client sends a client request to the server, where the client request includes a first timeout control identifier, where the first timeout control identifier is used to initiate timeout control on the browser user, and the server maintenance is used to Determining condition information required by the browser user to time out and generating timeout status information according to the condition information;
  • the user sends a client request to the server through the client, and the client request may be a login request/initialization authentication request, or may be another service interaction request.
  • the login request is taken as an example to describe the
  • the user obtains the login interface of the client through the URL (Uniform Location Resource).
  • the login interface of the client can be stored locally or stored in the server.
  • the browser will locally search for storage. There is a client login interface corresponding to the input URL. If yes, the client login interface stored locally is obtained. If not, the client login interface request is initiated to the server through the URL, and the server provides corresponding according to the request.
  • Client login interface and displayed to the user through the browser, for the user to be on the client
  • the login information is output in the login interface, and the client sends a login request to the server according to the login information.
  • a first timeout control identifier indicating whether the request needs timeout control is added to the message header or the message body of the login request message, for example, t imeout-control : 0 , indicating that the request needs to perform timeout control;
  • the second timeout control identifier may be included in other requests sent by the client, for example, t imeout-control : 1 , indicating that the request does not need to perform timeout control;
  • the login request message sent by the client needs to include a timeout control identifier indicating that the login request needs to perform timeout control, that is,
  • the login request message includes: t ime
  • the server When the server receives the login request of the client, the login information in the login request is verified. If the verification is passed, that is, after the login request is approved, the server allows the client to log in to the application system and return to the corresponding application system.
  • the user interface is used for user interface operation.
  • the client When the user logs in to the application system through the client, the client generates a corresponding cookie ID, which records the login information of the user and the access time after login.
  • the server will get the timeout control in the login request and start the timeout control based on the timeout control.
  • the server obtains the cookie ID of the client, stores the current client access time with the cookie ID as the key value, and after the client requests each client that needs to perform timeout control, the server will refresh the corresponding Cook.
  • the last access time of the ie ID, the CooKie ID and the last access time of the client are the condition information used to determine whether the browser user has timed out.
  • the client After the user logs in to the application system through the client, and the server starts the corresponding timeout control mechanism, the client periodically obtains the current browser user timeout status from the server through polling, and according to the browser user's timeout returned by the server.
  • the status information determines whether to lock the client operation interface.
  • the polling request is automatically triggered/started by the client, the request that is automatically triggered/started by the client does not belong to the user's behavior, therefore, The state of the user cannot be determined according to the request of the automatic triggering/initiating. Therefore, in the embodiment of the present invention, a timeout control character indicating that the polling request does not need to perform timeout control is added to the polling request automatically triggered by the client, The server is notified that there is no need to timeout the request, and the server does not need to refresh the access time of the cookie ID at this time.
  • the server After receiving the polling request, the server obtains the cookie ID of the client corresponding to the polling request, and obtains the last access time of the user corresponding to the cookie ID, and compares the difference between the current time and the last access time. If the value is greater than the threshold, Returns the timeout identifier. If it is less than the threshold, it returns a timeout identifier.
  • the threshold may be a duration set by the user, or may be a default duration of the application system.
  • the locking layer When the client obtains the timeout status information that the current user has timed out through the polling request, the locking layer is actively popped up; during the locking process, when the client knows that the user has timed out, the current will be actively The operation interface is locked.
  • the locking mode may be a pop-up locking layer to cover the current operation interface, or a pop-up user login interface to cover the current operation interface, or directly lock the current operation interface; meanwhile, through bubbling The way or flashing pattern reminds the user to log in again.
  • the step 102 is repeated to start the next polling request.
  • the timeout control is used to identify whether the request sent by the client requires timeout control, so that the server can start the timeout control according to the timeout control identifier, and the timeout is enabled.
  • the control is more accurate.
  • the client temporarily obtains the timeout status information of the current browser user from the server, thereby actively locking the current user interface of the browser user.
  • the client When the user's current operation interface is locked due to timeout and needs to enter the operation interface again, the user needs to re-enter the login information, the client responds to the login information, and sends a login request to the server according to the user login information, and the server verifies the login. After the information is passed, the authentication pass message is returned, and the client will release the lock status of the browser user according to the authentication message and enter, and the server will refresh the last access time corresponding to the cookie ID of the client, and re-enter the new round of the timeout control process. .
  • the user when the user logs in again, only the locked operation layer is restored, and the operation interface before the lock is lost without logging in to the initial operation interface. Therefore, after unlocking, the user can log in to the application system. And return to the operation interface before locking, so that the operation interface context is not lost due to timeout, which is convenient for the user to operate.
  • the client-based timeout control method 100 further includes the following steps: 106. Automatically trigger a client request, and obtain a response corresponding to the automatically triggered client request to refresh content in the operation interface, where the automatic trigger client request includes a second timeout control identifier, and the The second timeout control flag indicates that no timeout control is required.
  • the automatic trigger client request usually sends some automatic requests for periodically obtaining alarm data and periodic refresh monitoring status. If these requests are not distinguished from the client's non-automatic client request, the server will consider that the client is always in the same position. In the active state, the timeout control mechanism does not function as expected. Therefore, in the embodiment of the present invention, a second timeout control identifier indicating that the automatic trigger client request does not need to perform timeout control is added to the automatically triggered client request. The server can distinguish the automatically triggered client request from the non-automatic client request by using the second timeout control identifier, and correspondingly, there is no need to refresh the last access time in the corresponding cookie ID.
  • a client-based timeout control method 200 is provided in another embodiment of the present invention.
  • the method is similar to the timeout control method 100 in the previous embodiment, wherein similar reference numerals represent the same or corresponding steps, such as Step 201 and step 101 represent the same steps, and step 202 and step 102 are corresponding steps.
  • the timeout control method 200 differs from the timeout control method 100 in that different browsing is adopted.
  • the method for obtaining the timeout status information of the user, that is, step 202 is different from step 102, and specifically step 203 is as follows:
  • the client does not need to periodically send a timeout status information request of the browser user, and only needs to establish a long Ht tp link with the server when the first user status request is issued, and the server will pass Ht tp.
  • the timeout status of the long link feedback user is used by the client to determine whether the client operation interface needs to be locked according to the timeout status information of the browser user. See the description in steps 1 04 to 105.
  • the timeout control is used to identify whether the request sent by the client requires timeout control, so that the server can start the timeout control according to the timeout control identifier, and the timeout is enabled.
  • the control is more accurate.
  • the client temporarily obtains the timeout status information of the current browser user from the server, so that the current user interface of the browser user can be actively locked.
  • the embodiment of the present invention is established between the client and the server. An Ht tp long link is used to transmit the timeout status information of the browser user.
  • the Ht tp long link it only needs to establish the information transmission channel when the user status query is first performed, that is, the Ht tp long link to realize the transmission of the user status, and then there is no need to further issue the information.
  • the status query requests, but the server status is directly fed back to the client through the Ht tp long link, thereby improving the response speed of the system.
  • a client-based timeout control method 300 is provided in another embodiment of the present invention.
  • the method is similar to the timeout control method 100 provided by the embodiment of the present invention, wherein similar reference numerals represent the same or corresponding steps, such as steps. 301 and step 101 represent the same steps, and step 302 and step 302 are corresponding steps.
  • the timeout control method 300 differs from the timeout control method 300 in that different browser users are employed.
  • the timeout status information obtaining method, that is, step 302 is different from step 302, specifically step 302 is as follows:
  • Establish a F lex rich client object listen to the server through the F lex rich client object, and actively obtain a timeout status information of the browser user;
  • the F lex rich client is embedded on the F lash P layer of the client, and the F lex rich client implements the server based on the Socket protocol. Listening, real-time monitoring the state of the user's timeout determined by the server.
  • each time the server receives a non-automatic client request initiated by the user it will refresh and issue the non-self.
  • the client's cookie ID is requested by the client, and the timeout control is started according to the timeout control of the non-automatic client request, that is, the difference between the last access time corresponding to the refreshed cookie ID and the current time is compared.
  • the difference between the current time and the last access time indicates that the user has timed out.
  • the F lex rich client object listens to the user timeout information, it will actively notify the client of the user timeout information it listens to.
  • the client can lock the client operation interface according to the result of the l ex rich client object monitoring. For the specific implementation mechanism, refer to the description in steps 104 to 105.
  • the timeout control is used to identify whether the request sent by the client requires timeout control, so that the server can start the timeout control according to the timeout control identifier, and the timeout is enabled.
  • the control is more accurate.
  • the client temporarily obtains the timeout status information of the current browser user from the server, thereby actively locking the current user interface of the browser user.
  • the F lex rich client object is used to listen to the timeout status information of the browser user, so that the user does not need to transmit the timeout judgment information in the non-timeout state on the network to save network resources.
  • the embodiment of the invention further provides a timeout control method, which includes:
  • the timeout control method further includes:
  • condition information includes a cookie ID of the client and a corresponding last access time
  • the generating the timeout status information according to the condition information includes: comparing the last access time with the current time, and generating the timeout status information corresponding to the cookie ID when the difference between the current time and the last access time is greater than a predetermined threshold.
  • timeout control method further includes:
  • the timeout status query request includes a second timeout control identifier, and the second timeout control identifier indicates that the request does not need to perform timeout control, and determining that the browser user times out according to the timeout status query request Status and maintain timeout status information for browser users; or
  • the responding to the client request according to the timeout status information of the browser user includes: if the user does not time out, performing a normal response to the client request, and refreshing the last access time of the browser user; When the user has timed out, the type of the client request is determined, and the client request is responded according to the type of the client request.
  • timeout control method further includes:
  • the client request is directed to the client login interface.
  • step of responding to the client request according to the type of the client request includes:
  • the timeout control is used to identify whether the request sent by the client needs timeout control, so that the server can start the timeout control according to the timeout control identifier, and the timeout control is more accurate.
  • the server can actively maintain the timeout status information of the client, and the timeout status information enables the client to lock the operation interface of the browser user when the timeout occurs, thereby improving the security of the browser user of the client.
  • a timeout control method 400 includes:
  • 401. Receive a client request sent by a browser, where the client request includes a timeout control identifier.
  • the client sends a client request to the server
  • the user adds a message indicating whether the client request is sent in the message requested by the client.
  • the timeout control identifier of the timeout control is required; when responding to the client request, the server needs to identify the timeout control identifier of the client request, and determine whether to start the timeout control to determine the timeout state of the browser user by using the timeout control identifier.
  • the client request sent by the client includes multiple client requests, such as a user re-authentication request issued by the client after being locked, a business processing request, or an automatic request automatically triggered by the client.
  • requests are not completely Triggered by the user through the client, for example, the client automatically triggers the client request, which is usually an automatic request for periodically acquiring alarm data and periodic refresh monitoring status, and these periodic triggered automatic requests are not related to the user.
  • the server will treat both the automatic request and the non-automatic request as user-triggered requests.
  • the server cannot know whether the user has timed out. The effect of the timeout control mechanism is caused.
  • the server judges The user timeout will not answer the request from the client, which will result in the inability to feed back some data that needs to be periodically updated or detected.
  • the client request sent by the client increases whether the client request performs a timeout control timeout control identifier to distinguish the type of the client request sent by the client, and issues a client request at the client.
  • the timeout control identifier in the client request is then obtained by the server.
  • the timeout control identifier may be set in a message header or a message body of the client request message, for example, t imeout-control : 0, indicating that the client request needs to perform timeout control; t imeout-control : 1 , The client request does not require timeout control.
  • condition information includes a cookie ID of the client and Corresponding last access time
  • determining, according to the timeout control identifier, the client request may be directly represented by the timeout control identifier, that is, when the timeout control identifier is 1, the client request is required to perform timeout control, and the timeout control identifier is 0.
  • determining the client request according to the timeout control identifier may also be performed by using the timeout control identifier in the corresponding timeout control comparison table, and then the timeout will be Whether the control flag indicates that the corresponding client request requires timeout control.
  • the server obtains the timeout control identifier of the client request, it can know whether the client request needs timeout control.
  • the server needs to start corresponding timeout control;
  • the client request is a login request sent by the user through the client, that is, the client request is the first client request of the user, then the server will obtain the cookie ID of the corresponding client, and store the current with the cookie ID as the key value.
  • Client access time if the client request is a non-automatic client request issued after the user logs in, the server determines whether the user is super or not by the difference between the last time the user accessed and the current time. Obtain the last access time of the client's cookie ID, and compare the difference between the current time and the last access time.
  • the server can also be the user.
  • the time of the last access starts, and the time is counted to determine whether the user times out. When the time is greater than the threshold, the user times out. When the time is less than the threshold, the user does not time out.
  • the timeout status information corresponding to the cookie ID is generated according to the comparison result of the last access time and the current time, and the timeout status information is used to indicate whether the browser user times out.
  • the server After the server obtains the timeout status of the browser user, the timeout status of the browser user can be fed back to the client.
  • the feedback can be requested by the client, or the server can be actively pushed to the client.
  • the first timeout control identifier in the client request is used to determine whether to perform timeout control on the client request sent by the client, and actively maintain the timeout status information of the browser user.
  • the client can lock the browser user's operation interface according to the browser user timeout information maintained by it, so as to prevent illegal entry into the application system by copying the URL.
  • timeout status information of the browser user in the step 402 is obtained and maintained in the following manner:
  • the timeout status query request includes a second timeout control identifier, and the second timeout control identifier indicates that the request does not need to perform timeout control, and determining that the browser user times out according to the timeout status query request Status and maintain timeout status information for browser users;
  • the server initiates the user's timeout judgment through the polling request sent by the client.
  • the server determines the status of the user according to the above method.
  • determining the timeout status of the client request in the step 402 can also be triggered by:
  • the server itself establishes a timeout status information polling mechanism of the browser user, and periodically determines the timeout status of the browser user.
  • the timeout control method 400 provided by the embodiment of the present invention further includes:
  • the server will decide how to respond to the client request based on the browser user's timeout status. Further, responding to the client request according to the timeout status information of the browser user includes:
  • the client request is normally answered and the browser user's last access time is refreshed.
  • the server determines that the user has not timed out, it normally responds to the client request, and refreshes the last access time of the cookie ID corresponding to the client, that is, the access time requested by the client is the last access time of the browser user. , and repeat the previous steps.
  • responding to the client request according to the timeout status information of the browser user further includes:
  • the client will lock and follow The normal operation mode, the client request that the current client can send, in addition to the automatic client request, the only non-automatic client request is the user re-authentication request, but it cannot be excluded that the user is through the same client (browser).
  • a client request issued by copying a URL attempts to bypass the locked browser user interface; therefore, it is necessary to determine the type of client request.
  • timeout control method further comprises: responding to the client request according to the type of the client request.
  • the server may respond to the client request according to the type of the client request.
  • the responding to the client request according to the type of the client request comprises: verifying the browser user information if the client request is a browser user re-authentication request; in this step, when the server determines The current client request is a user re-authentication request, and the server needs to verify the browser user information in the browser user re-authentication request to confirm whether the browser user information is correct, thereby determining how to respond to the browser user re-authentication request.
  • the timeout control method further comprises: responding to the client request according to whether the verification information is correct.
  • the server learns that the client request is a user re-authentication request
  • the user information in the user re-authentication request is verified, and the result of the verification determines how to respond to the client request.
  • the responding to the client request according to the type of the client request further includes: if the client requests a non-user re-authentication request, returning the user timeout information, and directing the client request to the user login interface.
  • the server determines that the client request is not from the locked client, and therefore directs the client request directly to the user login interface. Further, the responding to the client request according to whether the verification information is correct comprises:
  • the browser user is returned to the authentication and the response is cleared, and the timeout status information of the browser user is cleared, and the last access time in the Cookie ID corresponding to the browser user is refreshed.
  • the server If the server verifies that the login information is correct, the server will return the login user and then re-authenticate the response. The client will unlock according to the response information returned by the server, allowing the user to return to the operation again.
  • the service will request the browser user's timeout status information. , at the same time refresh the last access time in the corresponding Cookie ID and start a new timeout control loop.
  • the responding to the client request according to whether the verification information is correct further includes:
  • the server actively maintains condition information for determining the timeout status of the browser user, and can generate timeout status information of the browser user according to the condition information.
  • the timeout status information enables the client to actively lock the operation interface; in addition, the timeout control identifier in the client request received by the server can be used to determine whether to perform timeout control on the client request sent by the client, so that the server can More accurate judgment of the browser user's timeout status.
  • a client 500 is provided in the embodiment of the present invention.
  • the client 500 includes: a client requesting module 510, configured to send a client request to a server, where the client request includes a first timeout control identifier.
  • the first timeout control identifier is used to initiate timeout control for the browser user, and the server maintains condition information required to determine whether the browser user times out and generates timeout status information according to the condition information.
  • a timeout status obtaining module 520 configured to acquire timeout status information of the browser user from a server side;
  • the client locking module 530 determines whether to lock the client operation interface according to the obtained timeout status information of the browser user, and locks the current operation interface if the user has timed out.
  • timeout state obtaining module 520 is configured to send a polling request to the server, and obtain, by the polling request, timeout status information of the browser user, where the polling request includes a second timeout control identifier. The sign indicates that the request does not require timeout control.
  • timeout state obtaining module 520 is configured to establish an Ht tp long link with the server, and obtain the timeout status information of the browser user by using the Ht tp long link.
  • timeout state obtaining module 520 is configured to establish a F lex rich client object, and listen to the timeout status information of the browser user maintained by the server by using the F lex rich client object, and receive the server when the user times out. Timeout status information for the browser user sent.
  • the client locking module 530 is further configured to prompt the browser user to re-enter the user login information; correspondingly, referring to FIG. 8, the client 500 further includes a client login module 540, in response to the login information, and And sending a login request to the server according to the user login information, where the login request includes a first timeout control identifier indicating that the login request needs to perform timeout control, and logging in to the application system after the login request is approved.
  • the client 500 further includes:
  • the client automatically requests the triggering module 550 to automatically trigger the client request, and obtain a response corresponding to the automatically triggered client request to refresh the content in the operation interface, where the automatic triggering client request includes a second timeout
  • the identifier is controlled, and the second timeout control flag indicates that timeout control is not required.
  • the operating mechanism of the client 500 provided by the embodiment of the present invention is the same as that of the client-based timeout control method 100, 200, 300 provided by the embodiment of the present invention, and is not redundant here.
  • the timeout control is used to identify whether the request sent by the client needs timeout control, so that the server can start the timeout control according to the timeout control identifier, and the timeout control is more accurate.
  • the client actively obtains the timeout status information of the current browser user from the server, thereby actively locking the current operation interface of the browser user.
  • a server 600 is provided in the embodiment of the present invention.
  • the server 600 includes: a service receiving module 61 0, configured to receive a client request sent by a client, where the client request includes a first timeout control identifier, The first timeout control identifier is used to initiate timeout control for a browser user;
  • the timeout state determining module 620 determines that the browser user needs to perform timeout control according to the first timeout control identifier, maintains condition information required for determining whether the browser user times out, and generates a timeout state according to the condition information.
  • the information, the timeout status information is used to indicate whether the browser user times out, so that the client locks the current operation interface of the browser user when the browser user times out.
  • the operation mechanism of the server 600 provided by the embodiment of the present invention is the same as that of the timeout control method 400 provided by the embodiment of the present invention, and is not redundant here.
  • the server 600 of the embodiment of the present invention uses the timeout control character to identify whether the request sent by the client needs timeout control, so that the server can start the timeout control according to the timeout control identifier, and the timeout control is more accurate.
  • the server can actively maintain the timeout status information of the client, and the timeout status information enables the client to lock the operation interface of the browser user when the timeout occurs, thereby improving the security of the browser user of the client.
  • the condition information includes a cookie ID of the client and a corresponding last access time; accordingly,
  • the timeout state determining module 620 of the server 600 is configured to compare the last access time with the current time. When the difference between the current time and the last access time is greater than a predetermined threshold, the timeout status corresponding to the cookie ID is generated. information.
  • timeout status determining module 620 of the server 600 is further configured to receive a timeout status query request of the client, the timeout status query request includes a second timeout control identifier, and the second timeout control The identifier indicates that the request does not need to perform timeout control, and the browser browser user timeout status is determined according to the timeout status query request, and the timeout status information of the browser user is maintained.
  • timeout status determining module 620 of the server 600 provided by the embodiment of the present invention is further configured to automatically and periodically determine the browser user timeout status and maintain the timeout status information of the browser user.
  • the server further includes a service processing module 630, configured to respond to the client request according to a timeout status information of the browser user.
  • the service processing module 630 is further configured to: when the browser user does not time out, perform a normal response to the client request, and refresh the browser user last access time; when the browser user has timed out, determine The type of the client request and respond to the client request based on the type of the client request.
  • the server 600 provided by the embodiment of the present invention further includes a service type determining module 640, configured to determine a type of the client request when the browser user has timed out; correspondingly, the service processing module The 630 is further configured to: when the client requests not a browser user re-authentication request, direct the client request to the client login interface. Further, referring to FIG.
  • the server 600 provided by the embodiment of the invention further includes a user information verification module 650, configured to verify browser user information when the client request is a browser user re-authentication request; correspondingly, The service processing module 630 is further configured to respond to the client request according to whether the verification information is correct.
  • the service processing module 630 if the browser user information is correct, returns to the browser user to re-authenticate the response, and clears the timeout status information of the browser user, and simultaneously refreshes the cookie ID corresponding to the browser user. Last visit time.
  • the embodiment of the present invention further provides a timeout control system, which is applied to the network system 700 as described in FIG.
  • the network system 700 includes a client 710, a server 720, and a connection network 730 for connecting the client segment 71 0 and the server 720.
  • the data interaction between the client 710 and the server 720 is implemented by the connection network 710.
  • the timeout control system 800 provided by the present invention includes the client 710 and the server 720.
  • the client 710 is configured to send a client request to the server, where the client request includes a first timeout control identifier, where the first timeout control identifier is used to initiate timeout control of the browser user.
  • the server maintains condition information required to determine whether the browser user has timed out and generates timeout status information according to the condition information; acquires timeout status information of the browser user from the server side; according to the acquired timeout status information When the browser user times out is determined, the current operation interface of the browser user is locked.
  • the server 720 receives a client request sent by the client, where the client request includes a first timeout control identifier, where the first timeout control identifier is used to initiate timeout control of a browser user. Determining, according to the first timeout control identifier, that the browser user needs to perform timeout control, maintaining condition information required for determining whether the browser user times out, and generating timeout status information according to the condition information, The timeout status information is used to indicate whether the browser user has timed out, so that the client locks the current operation interface of the browser user when the browser user times out.
  • the present invention can be implemented by means of software plus necessary general hardware, and of course, can also be through hardware, but in many cases the former is a better implementation. .
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • a hard disk or optical disk or the like includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Description

一种超时控制的方法、 装置及系统
技术领域 本发明涉及通信领域, 尤其涉及网络系统中超时控制机制。
背景技术
为了保证用户数据的安全, 各个运营商提供了许多安全保护方案。 例如, 在现有的 Web系统中, 超时控制大致可有两种方式, 一种是基于客 户端的超时控制, 另外一种是基于服务器的超时控制。在基于客户端的超时控 制中, 由于通常一个客户端包括至少一个浏览器用户, 当浏览器用户的当前操 作界面被客户端因为超时而锁定的时候, 用户可以通过复制 URL (全球定位资 源符)在所述客户端中建立新的浏览器用户, 从而进入被锁定的操作界面中, 而不需要重新输入验证信息, 这种超时控制机制存在着安全隐患。 为了解决该 问题,现有技术中提出了基于服务器的超时控制机制,在基于服务器的超时控 制机制中, 当浏览器用户超时时服务器便会中断与浏览器用户间的会话,从而 防止通过复制 URL来绕过超时控制机制的弊端。 然而,基于服务器的超时控制 机制存在无法区分哪种请求需要进行超时控制, 哪种请求不需要进行超时控 制,如此便会将客户端发送的任何请求都进行超时控制, 不仅不能准确的判断 浏览器用户是否真正的超时, 而且还有可能导致用户的超时控制失效的弊端; 此外,客户端不能主动锁定的浏览器用户的当前操作界面, 只有当浏览器用户 再次发出请求时才会弹出已经超时的警告并锁定操作界面, 而此前, 浏览器用 户的当前操作界面的信息处于公开状态, 从而存在安全隐患。
发明内容
本发明实施例提供了一种超时控制方法,客户端,服务器及超时控制系统。 一种超时控制方法, 用于对客户端进行超时控制, 所述客户端包括至少一 个浏览器用户, 其包括:
客户端向服务器发送客户端请求,所述客户端请求中包含第一超时控制标 识, 所述第一超时控制标识用于启动对所述浏览器用户的超时控制, 所述服务 器维护用于判断所述浏览器用户是否超时所需的条件信息并根据所述条件信 息生成超时状态信息;
从服务器侧获取所述浏览器用户的超时状态信息;
根据所获取的超时状态信息确定所述浏览器用户超时时,锁定浏览器用户 当前的操作界面。
一种超时控制方法, 用于对客户端进行超时控制, 所述客户端包括至少一 个浏览器用户, 其包括:
接收客户端发送的客户端请求, 所述客户端请求包含第一超时控制标识, 所述第一超时控制标识用于启动对浏览器用户的超时控制;
根据所述第一超时控制标识确定所述浏览器用户需要进行超时控制 ,维护 用于判断所述浏览器用户是否超时所需的条件信息,根据所述条件信息生成超 时状态信息, 所述超时状态信息用于表示所述浏览器用户是否超时, 以使所述 客户端在所述浏览器用户超时时锁定浏览器用户当前的操作界面。 一种客户端, 其包括:
客户端请求模块, 用以向服务器发送客户端请求, 所述客户端请求中包含 第一超时控制标识,所述第一超时控制标识用于启动对所述浏览器用户的超时 控制,所述服务器维护用于判断所述浏览器用户是否超时所需的条件信息并根 据所述条件信息生成超时状态信息;
超时状态获取模块, 用以从服务器侧获取所述浏览器用户的超时状态信 息; 以及
客户端锁定模块,用以根据获取的浏览器用户的超时状态信息信息来决定 是否锁定客户端操作界面, 若用户已超时则锁定当前操作界面。
一种服务器, 其包括:
业务接收模块, 用以接收客户端发送的客户端请求, 所述客户端请求包含 第一超时控制标识, 所述第一超时控制标识用于启动对浏览器用户的超时控 制;
超时状态判断模块,根据所述第一超时控制标识确定所述浏览器用户需要 进行超时控制, 维护用于判断所述浏览器用户是否超时所需的条件信息,根据 所述条件信息生成超时状态信息,所述超时状态信息用于表示所述浏览器用户 是否超时,以使所述客户端在所述浏览器用户超时时锁定浏览器用户当前的操 作界面。
一种超时处理系统, 包括:
客户端, 用以向服务器发送客户端请求, 所述客户端请求中包含第一超时 控制标识, 所述第一超时控制标识用于启动对所述浏览器用户的超时控制, 所 述服务器维护用于判断所述浏览器用户是否超时所需的条件信息并根据所述 条件信息生成超时状态信息; 从服务器侧获取所述浏览器用户的超时状态信 息; 根据所获取的超时状态信息确定所述浏览器用户超时时,锁定浏览器用户 当前的操作界面。
服务器,接收所述客户端发送的客户端请求, 所述客户端请求包含第一超 时控制标识, 所述第一超时控制标识用于启动对浏览器用户的超时控制; 根据 所述第一超时控制标识确定所述浏览器用户需要进行超时控制 ,维护用于判断 所述浏览器用户是否超时所需的条件信息,根据所述条件信息生成超时状态信 息, 所述超时状态信息用于表示所述浏览器用户是否超时, 以使所述客户端在 所述浏览器用户超时时锁定浏览器用户当前的操作界面。
本发明实施例提供的超时控制方法, 客户端, 服务器及超时控制系统中, 通过超时控制符来标识客户端发出的请求是否需要超时控制,从而能使服务器 根据所述得超时控制标识来启动超时控制, 而使超时控制更加准确,从而提高 客户端的安全性。 附图说明
图 1是本发明实施例提供的一种的超时控制方法流程图;
图 2是本发明另一实施例提供的一种超时控制方法流程图;
图 3是本发明另一实施例提供的一种超时控制方法流程图;
图 4是本发明另一实施例提供的一种超时控制方法流程图;
图 5是本发明另一实施例提供的一种超时控制方法流程图;
图 6是本发明另一实施例提供的一种超时控制方法流程图;
图 7是本发明实施例提供的一种客户端; 图 8是本发明另一实施例提供的一种客户端;
图 9是本发明另一实施例提供的一种客户端;
图 10是本发明实施例提供的一种服务器的模块图;
图 11是本发明另一实施例提供的一种服务器的模块图;
图 12是本发明另一实施例提供的一种服务器的模块图;
图 13是本发明另一实施例提供的一种服务器的模块图。 具体实施方式 本发明实施例提供一种的超时控制方法, 用于对客户端进行超时控制, 所 述客户端包括至少一个浏览器用户, 其包括:
客户端向服务器发送客户端请求, 所述客户端请求中包含第一超时控制标 识, 所述第一超时控制标识用于启动对所述浏览器用户的超时控制, 所述服务 器维护用于判断所述浏览器用户是否超时所需的条件信息并根据所述条件信 息生成超时状态信息;
从服务器侧获取所述浏览器用户的超时状态信息; 根据所获取的超时状态信息确定所述浏览器用户超时时,锁定浏览器用户 当前的操作界面。
进一步, 本发明实施例提供的一种的超时控制方法还包括:
提示浏览器用户重新录入用户登录信息;
响应登录信息, 并根据该用户登录信息向服务器发出登录请求, 该登录请 求中包括有第一超时控制标识表示该登录请求需要进行超时控制,在所述登录 请求获准后允许浏览器用户登录进入应用系统。 更进一步, 本发明实施例提供的一种的超时控制方法还包括: 自动触发客户端请求,并获取与该自动触发的客户端请求对应的响应以刷 新操作界面中的内容,其中该自动触发客户端请求中包括有第二超时控制标识 符, 且所述第二超时控制标识表示不需要进行超时控制。
本发明实施例提供的超时控制方法中,通过超时控制符来标识客户端发出 的请求是否需要超时控制,从而能使服务器根据所述得超时控制标识来启动超 时控制, 而使超时控制更加准确, 此外, 通过客户端主动从服务器获取当前浏 览器用户的超时状态信息, 从而可以主动的锁定浏览器用户的当前操作界面。 以下结合附图对本发明实施例进行详细说明。
请参阅图 1本发明实施例提供的一种的超时控制方法 100 , 其包括:
101、 客户端向服务器发送客户端请求, 所述客户端请求中包含第一超时 控制标识, 所述第一超时控制标识用于启动对所述浏览器用户的超时控制, 所 述服务器维护用于判断所述浏览器用户是否超时所需的条件信息并根据所述 条件信息生成超时状态信息;
该步骤中, 用户通过客户端向服务器发送客户端请求, 该客户端请求可以 是登录请求 /初始化认证请求, 也可以是其它的业务交互请求, 本发明实施例 以登录请求为例来详细说明该步骤的过程, 用户通过 URL (统一定位资源符)获 取客户端的登录界面,该客户端的登录界面可以存储在本地,也可以是存储在 服务器, 当用户输出 URL 后, 浏览器会在本地寻找是否存储有与输入的 URL 对应的客户端登录界面, 若有则直接获取该存储在本地的客户端登录界面, 若 没有, 则通过 URL向服务器发起客户端登录界面请求,服务器则会根据该请求 提供相应的客户端登录界面, 并通过浏览器显示给用户, 用以供用户在客户端 登录界面中输出登录信息,客户端根据所述登录信息,向服务器发出登录请求。 当客户端根据所述登录信息发出登录请求时,会在该登录请求消息的消息头或 者消息体内增加一表示该请求是否需要进行超时控制的第一超时控制标识,比 如, t imeout-control : 0, 表示该请求需要进行超时控制; 此外, 在客户端发 送的其他请求中还可包括第二超时控制标识, 比如, t imeout-control : 1 , 表 示该请求不需要进行超时控制; 而对于客户端的登录请求而言, 为了保证客户 端操作的安全性, 需要进行超时控制, 因此, 在所述客户端发出的登录请求消 息中则需要包括表示该登录请求需要进行超时控制的超时控制标识, 即,对应 上述的例子, 所述登录请求消息中包括: t imeout-control : 0。
当服务器接收到所述客户端的登录请求,便会验证所述登录请求中的登录 信息, 若验证通过, 即该登录请求获准后, 服务器则允许客户端登录进入应用 系统, 并返回相应的应用系统操作界面, 供用户进行界面操作, 当用户通过客 户端登录到应用系统时, 客户端将生成一个对应的 Cookie ID, 该 Cookie ID 记录了用户的登录信息以及登录后的访问时间。 与此同时,服务器将会获取登 录请求中的超时控制符并根据所述超时控制符来启动超时控制。 本实施例中, 服务器获取客户端的 Cookie ID, 以 Cookie ID为键值存储当前客户端访问时 间, 并且在客户端发出的每个需要进行超时控制的客户端请求后,服务器就将 相应的刷新 Cook ie ID的最后访问时间, 该 CooKie ID及客户端的最后访问时 间是用以判断浏览器用户是否超时的条件信息。
102、 向服务器发送轮询请求, 通过所述轮询请求向服务获取浏览器用户 的超时状态信息,所述轮询请求中包括有第二超时控制标识符表示该请求不需 要进行超时控制; 当用户通过客户端登录进入应用系统,并且服务器启动了相应的超时控制 机制后, 客户端将通过轮询的方式定期从服务器获取当前浏览器用户超时状 态,并根据服务器反馈的浏览器用户的超时状态信息来决定是否锁定客户端操 作界面, 由于该轮询请求为客户端自动触发 /启动的, 因此, 对于此类由客户 端自动触发 /启动的请求, 并不属于用户的行为, 因此, 并不能根据此类自动 触发 /启动的请求来判断用户的状态, 因此, 本发明实施例中, 在客户端自动 触发的轮询请求中增加表示该轮询请求无需进行超时控制的超时控制符,以告 知服务器不需对该请求做超时控制, 服务器也无需刷新此时的 Cookie ID的访 问时间。 当服务器接收到轮询请求后, 则获取与该轮询请求对应客户端的 Cookie ID, 并获取 Cookie ID对应的用户的最后访问时间, 比较当前时间与 最后访问时间的差值, 如果大于阈值, 则返回超时标识, 如果小于阈值, 则返 回未超时标识。 其中, 所述的阈值可以是用户自己设置的一段时长, 也可以是 应用系统默认的时长。
103、 根据所获取的超时状态信息确定所述浏览器用户超时时, 锁定当前 的操作界面。
当客户端通过轮询请求获取到当前用户已超时的超时状态信息,则主动弹 出锁定层; 该锁定的过程中, 当客户端获知此时用户已经超时的状态后, 便会 主动的将当前的操作界面锁定, 该锁定的方式可以是弹出锁定层, 以覆盖当前 的操作界面, 或者是弹出用户登录界面, 以覆盖当前的操作界面, 或者是直接 锁定当前的操作界面; 同时,通过冒泡的方式或者闪烁图案的方式来提醒用户 重新登录。 当客户端通过轮询请求获取当前用户未超时标识, 则重复该步骤 102 , 启动下一次轮询请求。 本发明实施例提供的基于客户端的超时控制方法 100中,通过超时控制符 来标识客户端发出的请求是否需要超时控制,从而能使服务器根据所述得超时 控制标识来启动超时控制, 而使超时控制更加准确, 此外, 通过客户端主动从 服务器获取当前浏览器用户的超时状态信息,从而可以主动的锁定浏览器用户 的当前操作界面。
请参阅图 2 , 若操作界面已经锁定时, 若需要接触锁定则可通过以下步骤 实现:
104、 提示浏览器用户重新录入用户登录信息;
1 05、 响应登录信息, 并根据该用户登录信息向服务器发出登录请求, 该 登录请求中包括有第一超时控制标识表示该登录请求需要进行超时控制 ,在所 述登录请求获准后允许浏览器用户登录进入应用系统。
当用户当前的操作界面由于超时被锁定, 需要再次进入操作界面时, 则需 要用户重新输入登录信息,客户端响应该登录信息, 并根据该用户登录信息发 出发送登录请求到服务端, 服务器验证登录信息通过后, 返回认证通过消息, 客户端将根据该认证消息解除浏览器用户的锁定状态并进入,同时服务器将刷 新客户端的 Cook ie ID对应的最后访问时间,重新进入新一轮的超时控制流程。 该步骤中, 当用户重新登录时, 仅仅是将锁定的操作层重新恢复使用, 并不需 要登录到初始的操作界面而丟失锁定前的操作界面, 因此, 解锁后, 用户可登 录进入应用系统, 并返回到锁定前的操作界面,从而不会因为超时而导致操作 界面上下文的丟失, 可方便用户操作。
进一步,请参阅图 3 ,本发明实施例提供的基于客户端的超时控制方法 100 还包括步骤: 106、 自动触发客户端请求, 并获取与该自动触发的客户端请求对应的响 应以刷新操作界面中的内容,其中该自动触发客户端请求中包括有第二超时控 制标识符, 且所述第二超时控制标识表示不需要进行超时控制。
该自动触发客户端请求通常是送一些用以周期获取告警数据以及周期刷 新监控状态的自动请求,这些请求如果不与客户端的非自动客户端请求作区分 的话, 那么服务器就会认为客户端一直处于活跃状态中, 那么超时控制机制就 起不到应有的作用, 因此, 本发明实施例中在自动触发的客户端请求中添加表 示该自动触发客户端请求无需进行超时控制的第二超时控制标识,服务器通过 该第二超时控制标识便可将该自动触发的客户端请求与非自动的客户端请求 区分开来, 相应的也无需刷新对应的 Cook ie I D中的最后访问时间。
请参阅图 4 , 本发明另一实施例提供的基于客户端的超时控制方法 200 , 该方法与前一实施例中的超时控制方法 1 00类似, 其中,相似的标号代表相同 或者相应的步骤, 比如步骤 201与步骤 101代表相同步骤, 步骤 202与步骤 102为相应的步骤, 为了简明起见, 相同的方法将不再冗述, 该超时控制方法 200与超时控制方法 1 00的区别在于采用了不同浏览器用户的超时状态信息获 取方法, 也就是步骤 202不同于步骤 1 02 , 具体地步骤 203如下所述:
202、 与服务器之间建立一 Ht tp长链接, 通过该 Ht tp长链接来获取浏览 器用户的超时状态信息;
该步骤中, 客户端就不需要周期性的发送浏览器用户的超时状态信息请 求,只需要在发出第一次用户状态请求时与服务器之间建立一个 Ht t p长链接, 服务器便会通过 Ht tp长链接反馈用户的超时状态, 用以供客户端根据该浏览 器用户的超时状态信息判断是否需要锁定客户端操作界面,具体的实现机制请 参阅步骤 1 04至 105中的描述。
本发明实施例提供的基于客户端的超时控制方法 200中,通过超时控制符 来标识客户端发出的请求是否需要超时控制,从而能使服务器根据所述得超时 控制标识来启动超时控制, 而使超时控制更加准确, 此外, 通过客户端主动从 服务器获取当前浏览器用户的超时状态信息,从而可以主动的锁定浏览器用户 的当前操作界面; 并且, 本发明实施例采用在客户端与服务器之间建立一个 Ht tp 长链接来传输浏览器用户的超时状态信息, 只需要在首次进行用户状态 查询时建立信息传输通道, 即 Ht tp长链接来实现用户状态的传输, 在此之后 就无需再进一步的发出状态查询请求了,而是通过服务器将用户状态通过所述 的 Ht tp长链接直接反馈给客户端, 从而提高了系统的响应速度。
请参阅图 5 , 本发明另一实施例提供的基于客户端的超时控制方法 300 , 该方法与本发明实施例提供的超时控制方法 100类似, 其中,相似的标号代表 相同或者相应的步骤, 比如步骤 301与步骤 101代表相同步骤, 步骤 302与步 骤 302为相应的步骤, 为了简明起见, 相同的方法将不再冗述, 该超时控制方 法 300与超时控制方法 300的区别在于采用了不同浏览器用户的超时状态信息 获取方法, 也就是步骤 302不同于步骤 302 , 具体地步骤 302如下所述:
302、 建立一个 F lex富客户端对象, 通过 F lex富客户端对象监听服务器 并主动获取浏览器用户的超时状态信息;
该步骤通过在客户端内部内嵌一 F lex富客户端对象,该 F lex富客户端内 嵌在所述客户端的 F lash P layer上, 该 F lex富客户端基于 Socket协议来实 现对服务器的监听, 实时的监听服务器所判断的用户是否超时的状态, 该步骤 中, 当服务器每接收到一用户发起的非自动客户端请求, 就会刷新发出该非自 动客户端请求的应客户端的 Cook ie I D, 并根据该非自动客户端请求的超时控 制符来启动超时控制, 即计算刷新的 Cook ie ID对应的最后访问时间与当前的 时间的差值, 比较当前时间与最后访问时间的差值, 如果大于阈值, 则表示用 户超时, 此时, F lex 富客户端对象监听到该用户超时信息后, 就会主动将其 监听的用户超时信息通知客户端,可户端根据该 l ex富客户端对象监听的结果 来锁定客户端操作界面, 具体的实现机制请参阅步骤 1 04至 105中的描述。
本发明实施例提供的基于客户端的超时控制方法 300中,通过超时控制符 来标识客户端发出的请求是否需要超时控制,从而能使服务器根据所述得超时 控制标识来启动超时控制, 而使超时控制更加准确, 此外, 通过客户端主动从 服务器获取当前浏览器用户的超时状态信息,从而可以主动的锁定浏览器用户 的当前操作界面。 并且, 本发明实施例中采用 F lex富客户端对象来监听浏览 器用户的超时状态信息,从而无需将用户出于非超时状态下的超时判断信息在 网络上进行传输, 以节省网络资源。
本发明实施例还提供一种超时控制方法, 其包括:
接收客户端发送的客户端请求, 所述客户端请求包含第一超时控制标识, 所述第一超时控制标识用于启动对浏览器用户的超时控制;
根据所述第一超时控制标识确定所述浏览器用户需要进行超时控制 ,维护 用于判断所述浏览器用户是否超时所需的条件信息,根据所述条件信息生成超 时状态信息, 所述超时状态信息用于表示所述浏览器用户是否超时, 以使所述 客户端在所述浏览器用户超时时锁定浏览器用户当前的操作界面。 进一步地, 该超时控制方法还包括:
根据浏览器用户的超时状态信息来响应所述的客户端请求。 更进一步地, 所述条件信息包括所述客户端的 Cookie ID和对应的最后访 问时间;
所述根据所述条件信息生成超时状态信息包括:比较最后访问时间与当前 时间, 当当前时间与最后访问时间的差值大于预定的阈值时,生成所述 Cookie ID对应的超时状态信息。
更进一步地, 该超时控制方法还包括:
接收客户端的超时状态查询请求,所述超时状态查询请求包括第二超时控 制标识符,且所述第二超时控制标识表示该请求不需要进行超时控制,根据该 超时状态查询请求判断浏览器用户超时状态,并维护浏览器用户的超时状态信 息; 或
自动周期性的判断浏览器用户超时状态,并维护浏览器用户的超时状态信 息。
更进一步地,所述根据浏览器用户的超时状态信息来响应所述的客户端请 求包括: 若用户未超时, 则对该客户端请求进行正常应答, 并刷新浏览器用户 的最后访问时间; 若用户已超时, 则判断该客户端请求的类型, 并根据该客户 端请求的类型来响应所述的客户端请求。
更进一步地, 该超时控制方法还包括:
若客户端请求不是用户再认证请求,则将该客户端请求导向客户端登录界 面。
更进一步地,所述的根据该客户端请求的类型来响应所述的客户端请求的 步骤包括:
若客户端请求是浏览器用户再认证请求, 则验证浏览器用户信息 若用户信息正确, 则返回用户再认证通过应答, 并清除用户的超时状态, 同时刷新对应的 Cook i e I D中的最后访问时间。
本发明实施例提供的超时控制方法中,通过超时控制符来标识客户端发出 的请求是否需要超时控制,从而能使服务器根据所述得超时控制标识来启动超 时控制, 而使超时控制更加准确, 此外, 服务器能主动维护客户端的超时状态 信息, 通过所述的超时状态信息使客户端在超时时锁定浏览器用户的操作界 面,从而提高客户端的浏览器用户的安全性。 以下结合附图对本发明实施例提 供的超时控制方法做出详细说明。
请参阅图 6 , 本发明实施例提供的一种超时控制方法 400 , 其包括:
401、接收浏览器发出的客户端请求, 所述客户端请求包含超时控制标识; 用户通过客户端向服务器发出客户端请求的时候,在该客户端请求的消息 中增加了表示该客户端请求是否需要进行超时控制的超时控制标识;服务器在 响应该客户端请求时, 需要识别该客户端请求的超时控制标识,通过该超时控 制标识来决定是否启动超时控制来判断浏览器用户的超时状态。在客户端发出 的客户端请求中包括多种客户端请求,比如由客户端被锁定后发出的用户再认 证请求、业务处理请求或者由客户端自动触发的自动请求, 这些请求中并不完 全是由用户通过客户端触发的, 比如所述的客户端自动触发的客户端请求,通 常是一些用以周期获取告警数据以及周期刷新监控状态的自动请求,这些周期 性触发的自动请求如果不与用户通过客户端触发的非自动请求区分开来,那么 服务器就会将自动请求与非自动请求都看成是用户触发的请求,如此, 由于自 动请求一直持续不断,那么服务器就无法获知用户是否超时,造成超时控制机 制的实效, 此外, 若服务器在某些请求下能够判断出用户超时, 而服务器判断 用户超时将不应答来自客户端的请求,如此就造成了无法反馈一些需要周期性 更新或者检测的数据。 因此, 本发明实施例中在客户端发出的客户端请求中增 加表示客户端请求是否进行超时控制超时控制标识符,以区分客户端发出的客 户端请求的种类,并在客户端发出客户端请求后由服务器来获取客户端请求中 的超时控制标识符。具体地, 所述超时控制标识可以设置在客户端请求消息的 消息头或者消息体中, 比如, t imeout-control : 0, 表示该客户端请求需要进 行超时控制; t imeout-control : 1 , 表示该客户端请求不需要进行超时控制。
402、 根据超时控制标识确定所述浏览器用户需要进行超时控制时, 管理 或维护用于判断所述浏览器用户是否超时所需的条件信息 ,所述条件信息包括 所述客户端的 Cook i e ID和对应的最后访问时间;
该步骤中,根据超时控制标识确定该客户端请求可以是直接通过所述超时 控制标识来体现, 即当超时控制标识为 1时,认为该客户端请求需要进行超时 控制, 当超时控制标识为 0时, 认为该客户端请求是不需要进行超时控制; 此 外,该根据超时控制标识确定该客户端请求也可以是通过该超时控制标识在对 应的超时控制对照表中进行查找,进而将与该超时控制标识是否表示对应的客 户端请求需要进行超时控制。 当服务器获取了客户端请求的超时控制标识后, 便可获知该客户端请求是否需要进行超时控制 ,如果该客户端请求需要进行超 时控制, 那么此时, 服务器则需要启动相应的超时控制; 如果该客户端请求是 用户通过客户端发出的登录请求,也就是说该客户端请求是用户的首次客户端 请求, 那么服务器将会获取对应客户端的 Cook ie ID, 以 Cook ie ID为键值存 储当前客户端访问时间;若该客户端请求是用户登录以后发出的非自动客户端 请求 ,服务器便将用户最后访问的时间与当前的时间的差值来判断用户是否超 时, 获取客户端的 Cookie ID的最后访问时间, 比较当前时间与最后访问时间 的差值, 如果大于阈值, 则表示该用户超时; 如果小于阈值, 则表示用户未超 时; 此外, 服务器也可从用户最后访问的时间开始计时, 通过计时的时间来判 断用户是否超时, 当计时时间大于阈值, 则表示该用户超时; 当计时时间小于 阈值, 则表示用户未超时。
403、 当触发条件满足时, 根据维护的所述最后访问时间与当前时间的比 较结果, 生成所述 Cookie ID对应的超时状态信息, 所述超时状态信息用于表 示所述浏览器用户是否超时。
服务器获取浏览器用户的超时状态后,便可将浏览器用户的超时状态反馈 给客户端, 该反馈可以是应所述客户端的请求, 也可以使服务器主动推送至客 户端。
本发明实施例提供的超时控制方法 400中,通过客户端请求中的第一超时 控制标识来确定是否对客户端所发送的客户端请求进行超时控制,主动地维护 浏览器用户的超时状态信息,从而使客户端能够根据其维护的浏览器用户超时 信息来锁定浏览器用户的操作界面, 以防止通过复制 URL非法进入应用系统。
进一步地,该步骤 402中浏览器用户的超时状态信息通过以下的方式来获 得并维护:
接收客户端的超时状态查询请求,所述超时状态查询请求包括第二超时控 制标识符,且所述第二超时控制标识表示该请求不需要进行超时控制,根据该 超时状态查询请求判断浏览器用户超时状态,并维护浏览器用户的超时状态信 息;
该步骤中,服务器通过客户端发出的轮询请求来启动用户的超时判断,客 户端每发出一次浏览器用户的超时状态信息查询请求,服务器就根据上述的方 法来判断用户的状态。
更进一步地,该步骤 402中判断该客户端请求的超时状态还可以通过以下 方式来触发:
自动周期性的判断浏览器用户的超时状态,并维护浏览器用户的超时状态 信息;
该步骤中,服务器自身建立浏览器用户的超时状态信息轮询机制, 定时的 判断浏览器用户的超时状态。 更进一步地, 本发明实施例提供的超时控制方法 400的进一步包括:
根据浏览器用户的超时状态信息来响应所述的客户端请求。
服务器将根据浏览器用户的超时状态来决定如何响应所述的客户端请求。 进一步地, 根据浏览器用户的超时状态信息来响应所述的客户端请求包 括:
若用户未超时, 则对该客户端请求进行正常应答, 并刷新浏览器用户的最 后访问时间。
如果服务器判断用户并未超时, 则正常的应答该客户端请求, 并且刷新与 该客户端对应的 Cook i e I D的最后访问时间, 即将本次客户端请求的访问时间 作为浏览器用户的最后访问时间, 并重复前述步骤。
更进一步地,根据浏览器用户的超时状态信息来响应所述的客户端请求还 包括:
若用户已经超时, 则判断该客户端请求的类型;
如果用户在发出该客户端请求之前已经超时, 那么客户端将会锁定,按照 常规的操作方式, 当前客户端能发的客户端请求除了自动客户端请求之外, 唯 一的非自动客户端请求就是用户再认证请求,但是也不能排除用户是通过在同 一客户端(浏览器)中通过复制 URL的方式发出的客户端请求, 试图绕过已锁 定的浏览器用户操作界面; 因此, 此时需要判断客户端请求的类型。
相应地, 所述超时控制方法还包括,根据该客户端请求的类型来应答所述 的客户端请求。
当服务器经过判断获得了所述客户端请求的类型后变可以根据所述客户 端请求的类型来应答所述的客户端请求。
更进一步地, 根据该客户端请求的类型来应答所述的客户端请求包括: 若客户端请求是浏览器用户再认证请求, 则验证所述浏览器用户信息; 该步骤中, 当服务器判断出当前的客户端请求是用户再认证请求,服务器 需要将浏览器用户再认证请求中的浏览器用户信息进行验证,以确认浏览器用 户信息是否正确, 从而决定如何响应该浏览器用户再认证请求。
相应地, 所述超时控制方法还包括,根据该验证信息是否正确来应答所述 的客户端请求。
当服务器获知所述的客户端请求是用户再认证请求时,则对所述的用户再 认证请求中的用户信息进行验证, 验证的结果将决定如何应答该客户端请求。
更进一步地, 根据该客户端请求的类型来应答所述的客户端请求还包括: 若客户端请求为非用户再认证请求时, 则返回用户超时信息, 并将客户端 请求导向用户登录界面。
此时, 服务器认定该客户端请求并非来自被锁定的客户端, 因此, 将该客 户端请求直接导向用户登录界面。 更进一步地, 所述根据该验证信息是否正确来应答所述的客户端请求包 括:
若用户信息正确, 则返回浏览器用户再认证通过应答, 并清除浏览器用户 的超时状态信息, 同时刷新浏览器用户对应的 Cook ie ID中的最后访问时间。
若服务器验证登录信息正确,服务器将返回登录用户再认证成功应答,客 户端将根据服务器返回的应答信息来解除锁定, 允许用户重新返回操作, 与此 同时, 服务将浏览器用户的超时状态信息请求, 同时刷新对应的 Cook ie ID 中的最后访问时间, 并开始新的超时控制循环。
更进一步地,所述根据该验证信息是否正确来应答所述的客户端请求还包 括:
若浏览器用户信息不正确, 则返回浏览器用户再认证失败应答。
本发明实施例提供的超时控制方法 400中,服务器主动维护用以判断判断 浏览器用户的超时状态的条件信息,并能够根据所述的条件信息来生成浏览器 用户的超时状态信息,通过所述的超时状态信息能够使客户端主动的锁定操作 界面; 此外, 在服务器接收的客户端请求中具有的超时控制标识, 可用来确定 是否对客户端所发送的客户端请求进行超时控制,使服务器能更加精确的判断 浏览器用户的超时状态。
请参阅图 7 , 本发明实施例提供的一种客户端 500 , 该客户端 500包括: 客户端请求模块 510 , 用以向服务器发送客户端请求, 所述客户端请求中 包含第一超时控制标识,所述第一超时控制标识用于启动对所述浏览器用户的 超时控制,所述服务器维护用于判断所述浏览器用户是否超时所需的条件信息 并根据所述条件信息生成超时状态信息; 超时状态获取模块 520 , 用以从服务器侧获取所述浏览器用户的超时状态 信息; 以及
客户端锁定模块 530 , 根据获取的浏览器用户的超时状态信息信息来决定 是否锁定客户端操作界面, 若用户已超时则锁定当前操作界面。
进一步地, 所述超时状态获取模块 520 , 用以向服务器发送轮询请求, 通 过所述轮询请求向服务获取浏览器用户的超时状态信息,所述轮询请求中包括 有第二超时控制标识符表示该请求不需要进行超时控制。
更进一步地, 所述超时状态获取模块 520 , 用以与所述服务器之间建立一 Ht tp长链接, 通过该 Ht tp长链接来获取浏览器用户的超时状态信息。
更进一步地, 所述超时状态获取模块 520 , 用以建立一个 F lex富客户端 对象, 通过 F lex富客户端对象监听所述服务器维护的浏览器用户的超时状态 信息, 并接收用户超时时服务器发送的浏览器用户的超时状态信息。
更进一步地,所述的客户端锁定模块 530还用以提示浏览器用户重新录入 用户登录信息;相应地,请参阅图 8 ,该客户端 500还包括客户端登录模块 540 , 响应登录信息, 并根据该用户登录信息向服务器发出登录请求, 该登录请求中 包括有第一超时控制标识表示该登录请求需要进行超时控制 ,并在所述登录请 求获准后登录进入应用系统。
此外, 请参阅图 9 , 该客户端 500还包括:
客户端自动请求触发模块 550 , 用以自动触发客户端请求, 并获取与该自 动触发的客户端请求对应的响应以刷新操作界面中的内容,其中该自动触发客 户端请求中包括有第二超时控制标识符,且所述第二超时控制标识表示不需要 进行超时控制。 本发明实施例提供的客户端 500 的运行机制与本发明实施例提供的基于 客户端的超时控制方法 1 00、 200、 300的运行机制相同, 在此不再冗述。
本发明实施例提供的客户端 500中,通过超时控制符来标识客户端发出的 请求是否需要超时控制,从而能使服务器根据所述得超时控制标识来启动超时 控制, 而使超时控制更加准确, 此外, 通过客户端主动从服务器获取当前浏览 器用户的超时状态信息, 从而可以主动的锁定浏览器用户的当前操作界面。
请参阅图 10,本发明实施例提供的一种服务器 600 , 该服务器 600包括: 业务接收模块 61 0 , 用以接收客户端发送的客户端请求, 所述客户端请求 包含第一超时控制标识,所述第一超时控制标识用于启动对浏览器用户的超时 控制;
超时状态判断模块 620 , 根据所述第一超时控制标识确定所述浏览器用户 需要进行超时控制, 维护用于判断所述浏览器用户是否超时所需的条件信息, 根据所述条件信息生成超时状态信息,所述超时状态信息用于表示所述浏览器 用户是否超时,以使所述客户端在所述浏览器用户超时时锁定浏览器用户当前 的操作界面。
本发明实施例提供的服务器 600 的运行机制与本发明实施例提供的超时 控制方法 400的运行机制相同, 在此不再冗述。
本发明实施例提供的服务器 600 , 服务器通过超时控制符来标识客户端发 出的请求是否需要超时控制,从而能使服务器根据所述得超时控制标识来启动 超时控制, 而使超时控制更加准确, 此外, 服务器能主动维护客户端的超时状 态信息,通过所述的超时状态信息使客户端在超时时锁定浏览器用户的操作界 面, 从而提高客户端的浏览器用户的安全性。 进一步地, 所述条件信息包括所述客户端的 Cook ie ID和对应的最后访问 时间; 相应地,
发明实施例提供的服务器 600的超时状态判断模块 620 , 用以比较最后访 问时间与当前时间, 当当前时间与最后访问时间的差值大于预定的阈值时, 生 成所述 Cook ie ID对应的超时状态信息。
更进一步地, 发明实施例提供的服务器 600的超时状态判断模块 620 , 还 用以接收客户端的超时状态查询请求,所述超时状态查询请求包括第二超时控 制标识符,且所述第二超时控制标识表示该请求不需要进行超时控制,根据该 超时状态查询请求判断浏览器浏览器用户超时状态,并维护浏览器用户的超时 状态信息。
更进一步地, 发明实施例提供的服务器 600的超时状态判断模块 620 , 还 用以自动周期性的判断浏览器用户超时状态,并维护浏览器用户的超时状态信 息。
更进一步地, 请参阅图 11 , 所述服务器还包括业务处理模块 630 , 用以根 据浏览器用户的超时状态信息来响应所述的客户端请求。
更进一步地, 所述业务处理模块 630 , 还用以在浏览器用户未超时, 则对 该客户端请求进行正常应答, 并刷新浏览器用户的最后访问时间; 在浏览器用 户已超时, 则判断该客户端请求的类型, 并根据该客户端请求的类型来响应所 述的客户端请求。 相应地, 请参阅图 12 , 发明实施例提供的服务器 600还包 括业务类型判断模块 640 , 用以在浏览器用户已经超时时, 判断该客户端请求 的类型; 相应地, 所述的业务处理模块 630还用以在客户端请求不是浏览器用 户再认证请求, 则将该客户端请求导向客户端登录界面。 更进一步地, 请参阅图 1 3 , 发明实施例提供的服务器 600还包括用户信 息验证模块 650 , 用以在客户端请求是浏览器用户再认证请求时, 验证浏览器 用户信息; 相应地, 所述的业务处理模块 630还用以根据该验证信息是否正确 来应答所述的客户端请求。
更进一步地, 所述的业务处理模块 630 , 若浏览器用户信息正确, 则返回 浏览器用户再认证通过应答, 并清除浏览器用户的超时状态信息, 同时刷新浏 览器用户对应的 Cook i e I D中的最后访问时间。
本发明实施例还提供的一种超时控制系统,该超时控制系统是应用于如图 16所述的网络系统 700中。
所述网络系统 700包括客户端 710 , 服务器 720 , 以及用以连接所述客户 端段 71 0及服务器 720的连接网络 730。 所述客户端 710与服务器 720之间的 数据交互通过所述连接网络 71 0来实现。
请参阅图 17本发明提供的超时控制系统 800包括所述的客户端 710 , 以 及服务器 720。
所述的客户端 710 , 用以向服务器发送客户端请求, 所述客户端请求中包 含第一超时控制标识,所述第一超时控制标识用于启动对所述浏览器用户的超 时控制,所述服务器维护用于判断所述浏览器用户是否超时所需的条件信息并 根据所述条件信息生成超时状态信息;从服务器侧获取所述浏览器用户的超时 状态信息; 根据所获取的超时状态信息确定所述浏览器用户超时时,锁定浏览 器用户当前的操作界面。
所述服务器 720 , 接收所述客户端发送的客户端请求, 所述客户端请求包 含第一超时控制标识,所述第一超时控制标识用于启动对浏览器用户的超时控 制; 根据所述第一超时控制标识确定所述浏览器用户需要进行超时控制, 维护 用于判断所述浏览器用户是否超时所需的条件信息,根据所述条件信息生成超 时状态信息, 所述超时状态信息用于表示所述浏览器用户是否超时, 以使所述 客户端在所述浏览器用户超时时锁定浏览器用户当前的操作界面。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发 明可借助软件加必需的通用硬件的方式来实现, 当然也可以通过硬件,但很多 情况下前者是更佳的实施方式。基于这样的理解, 本发明的技术方案本质上或 者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软 件产品存储在可读取的存储介质中, 如计算机的软盘, 硬盘或光盘等, 包括若 干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备 等)执行本发明各个实施例所述的方法。

Claims

权 利 要 求
1、 一种超时控制方法, 用于对客户端进行超时控制, 所述客户端包括至 少一个浏览器用户, 其特征在于包括:
客户端向服务器发送客户端请求, 所述客户端请求中包含第一超时控制标 识, 所述第一超时控制标识用于启动对所述浏览器用户的超时控制, 所述服务 器维护用于判断所述浏览器用户是否超时所需的条件信息并根据所述条件信 息生成超时状态信息;
从服务器侧获取所述浏览器用户的超时状态信息;
根据所获取的超时状态信息确定所述浏览器用户超时时,锁定浏览器用户 当前的操作界面。
2、 如权利要求 1所述的超时控制方法, 其特征在于: 在锁定当前的操作 界面之后还包括:
提示浏览器用户重新录入用户登录信息;
响应登录信息, 并根据该用户登录信息向服务器发出登录请求, 该登录请 求中包括有第一超时控制标识表示该登录请求需要进行超时控制 ,在所述登录 请求获准后允许浏览器用户登录进入应用系统。
3、 如权利要求 1或 2所述的超时控制方法, 其特征在于还包括: 自动触发客户端请求,并获取与该自动触发的客户端请求对应的响应以刷 新操作界面中的内容,其中该自动触发客户端请求中包括有第二超时控制标识 符, 且所述第二超时控制标识表示不需要进行超时控制。
4、 如权利要求 1或 2所述的超时控制方法, 其特征在于: 所述从服务器 侧获取所述浏览器用户的超时状态信息包括: 向服务器发送轮询请求,通过所述轮询请求向服务获取浏览器用户的超时 状态信息,所述轮询请求中包括有第二超时控制标识符表示该请求不需要进行 超时控制。
5、 如权利要求 1或 2所述的超时控制方法, 其特征在于: 所述从服务器 侧获取所述浏览器用户的超时状态信息包括:
与服务器之间建立一 H t tp长链接,通过该 Ht tp长链接来获取浏览器用户 的超时状态信息。
6、 如权利要求 1或 2所述的超时控制方法, 其特征在于: 所述从服务器 侧获取所述浏览器用户的超时状态信息包括:
建立一个 F lex富客户端对象,通过 F lex富客户端对象监听服务器维护的 浏览器用户的超时状态信息,并接收用户超时时服务器发送的浏览器用户的超 时状态信息。
7、 如权利要求 1所述的超时控制方法, 其特征在于: 所述的第一超时控 制符包含在请求消息的消息体或者消息头中。
8、 一种超时控制方法, 用于对客户端进行超时控制, 所述客户端包括至 少一个浏览器用户, 其特征在于包括,
接收客户端发送的客户端请求, 所述客户端请求包含第一超时控制标识, 所述第一超时控制标识用于启动对浏览器用户的超时控制;
根据所述第一超时控制标识确定所述浏览器用户需要进行超时控制,维护 用于判断所述浏览器用户是否超时所需的条件信息,根据所述条件信息生成超 时状态信息, 所述超时状态信息用于表示所述浏览器用户是否超时, 以使所述 客户端在所述浏览器用户超时时锁定浏览器用户当前的操作界面。
9、 如权利要求 8所述的超时控制方法, 其特征在于, 所述方法还包括: 根据浏览器用户的超时状态信息来响应所述的客户端请求。
10、 如权利要求 8或 9所述的超时控制方法, 其特征在于: 所述条件信息 包括所述客户端的 Cook ie ID和对应的最后访问时间;
所述根据所述条件信息生成超时状态信息包括:比较最后访问时间与当前 时间, 当当前时间与最后访问时间的差值大于预定的阈值时,生成所述 Cook ie ID对应的超时状态信息。
11、 如权利要求 8所述的超时控制方法, 其特征在于, 所述还包括: 接收客户端的超时状态查询请求,所述超时状态查询请求包括第二超时控 制标识符,且所述第二超时控制标识表示该请求不需要进行超时控制,根据该 超时状态查询请求判断浏览器用户超时状态,并维护浏览器用户的超时状态信 息; 或
自动周期性的判断浏览器用户超时状态,并维护浏览器用户的超时状态信 息。
12、 如权利要求 9所述的超时控制方法, 其特征在于, 所述根据浏览器用 户的超时状态信息来响应所述的客户端请求包括: 若用户未超时, 则对该客户 端请求进行正常应答, 并刷新浏览器用户的最后访问时间; 若用户已超时, 则 判断该客户端请求的类型,并根据该客户端请求的类型来响应所述的客户端请 求。
1 3、 如权利要求 12所述的超时控制方法, 其特征在于, 所述的根据该客 户端请求的类型来响应所述的客户端请求包括:
若客户端请求不是用户再认证请求,则将该客户端请求导向客户端登录界 面。
14、 如权利要求 12所述的超时控制方法, 其特征在于, 所述的根据该客 户端请求的类型来响应所述的客户端请求的步骤包括:
若客户端请求是浏览器用户再认证请求, 则验证所述浏览器用户信息; 若浏览器用户信息正确, 则返回浏览器用户再认证通过应答, 并清除浏览 器用户的超时状态信息, 同时刷新浏览器用户对应的 Cook i e ID中的最后访问 时间。
15、 一种客户端, 其特征在于, 该客户端包括:
客户端请求模块, 用以向服务器发送客户端请求, 所述客户端请求中包含 第一超时控制标识,所述第一超时控制标识用于启动对所述浏览器用户的超时 控制,所述服务器维护用于判断所述浏览器用户是否超时所需的条件信息并根 据所述条件信息生成超时状态信息;
超时状态获取模块, 用以从服务器侧获取所述浏览器用户的超时状态信 息; 以及
客户端锁定模块,用以根据获取的浏览器用户的超时状态信息来决定是否 锁定客户端操作界面, 若用户已超时则锁定当前操作界面。
16、 如权利要求 15所述的客户端, 其特征在于:
所述的客户端锁定模块, 还用以提示浏览器用户重新录入用户登录信息; 相应地, 所述客户端还包括:
客户端登录模块, 用以响应用户登录信息, 并根据该用户登录信息发出登 录请求, 该登录请求中包括有超时控制标识,且该超时控制标识表示该登录请 求需要进行超时控制, 并在所述登录请求获准后登录进入应用系统。
17、如权利要求 15或 16所述的客户端,其特征在于所述的客户端还包括: 自动客户端请求触发模块, 用以自动触发客户端请求, 并获取与该自动触 发的客户端请求对应的响应以刷新操作界面中的内容,其中该自动触发客户端 请求中包括有第二超时控制标识符,且所述第二超时控制标识表示不需要进行 超时控制。
18、 如权利要求 15或 16任意一项所述的客户端, 其特征在于, 所述的超 时状态获取模块, 用以向服务器发送轮询请求, 通过所述轮询请求向服务获取 浏览器用户的超时状态信息,所述轮询请求中包括有第二超时控制标识符表示 该请求不需要进行超时控制。
19、 如权利要求 15或 16任意一项所述的客户端, 其特征在于, 所述的超 时状态获取模块, 用以与所述服务器之间建立一 Ht tp 长链接, 通过该 Ht tp 长链接来获取浏览器用户的超时状态信息。
20、 如权利要求 15或 16任意一项所述的客户端, 其特征在于, 所述的超 时状态获取模块, 用以建立一个 F lex富客户端对象,通过 F lex富客户端对象 监听所述服务器维护的浏览器用户的超时状态信息,并接收用户超时时服务器 发送的浏览器用户的超时状态信息。
21、 一种服务器, 其特征在于, 该服务器包括:
业务接收模块, 用以接收客户端发送的客户端请求, 所述客户端请求包含 第一超时控制标识, 所述第一超时控制标识用于启动对浏览器用户的超时控 制;
超时状态判断模块,根据所述第一超时控制标识确定所述浏览器用户需要 进行超时控制, 维护用于判断所述浏览器用户是否超时所需的条件信息,根据 所述条件信息生成超时状态信息,所述超时状态信息用于表示所述浏览器用户 是否超时,以使所述客户端在所述浏览器用户超时时锁定浏览器用户当前的操 作界面。
22、 如权利要求 21所述的服务器, 其特征在于还包括: 业务处理模块, 以根据浏览器用户的超时状态信息来响应所述的客户端请求。
23、 如权利要求 21或 22所述的服务器, 其特征在于: 所述的超时状态判 断模块, 所述条件信息包括所述客户端的 Cook ie ID和对应的最后访问时间; 相应地, 所述超时状态判断模块, 用以比较最后访问时间与当前时间, 当当前 时间与最后访问时间的差值大于预定的阈值时, 生成所述 Cook ie I D对应的超 时状态信息。
24、 如权利要求 21所述的服务器, 其特征在于该服务器还包括: 所述超 时状态判断模块,还用以接收客户端的超时状态查询请求, 所述超时状态查询 请求包括第二超时控制标识符,且所述第二超时控制标识表示该请求不需要进 行超时控制,根据该超时状态查询请求判断浏览器用户超时状态, 并维护浏览 器用户的超时状态信息; 或者, 所述超时状态判断模块, 还用以自动周期性的 判断浏览器用户超时状态, 并维护浏览器用户的超时状态信息。
25、 如权利要求 22所述的服务器, 其特征在于, 所述业务处理模块, 还 用以在浏览器用户未超时, 则对该客户端请求进行正常应答, 并刷新浏览器用 户的最后访问时间; 在浏览器用户已超时, 则判断该客户端请求的类型, 并根 据该客户端请求的类型来响应所述的客户端请求。
26、 如权利要求 25所述的服务器, 其特征在于还包括:
业务类型判断模块, 用以在浏览器用户已经超时时, 判断该客户端请求的 类型;
相应地, 所述业务处理模块还用在客户端请求不是浏览器用户再认证请 求, 则将该客户端请求导向客户端登录界面。
27、 如权利要求 26所述的服务器, 其特征在于还包括:
用户信息验证模块, 用以在客户端请求是浏览器用户再认证请求时, 验证 浏览器用户信息; 相应地, 所述的业务处理模块还用以根据该验证信息是否正 确来应答所述的客户端请求, 并浏览器用户信息正确, 则返回浏览器用户再认 证通过应答, 并清除浏览器用户的超时状态信息, 同时刷新浏览器用户对应的 Cook i e I D中的最后访问时间。
28、 一种超时处理系统, 其特征在于, 包括:
客户端, 用以向服务器发送客户端请求, 所述客户端请求中包含第一超时 控制标识, 所述第一超时控制标识用于启动对所述浏览器用户的超时控制, 所 述服务器维护用于判断所述浏览器用户是否超时所需的条件信息并根据所述 条件信息生成超时状态信息; 从服务器侧获取所述浏览器用户的超时状态信 息; 根据所获取的超时状态信息确定所述浏览器用户超时时,锁定浏览器用户 当前的操作界面,
服务器, 接收所述客户端发送的客户端请求, 所述客户端请求包含第一超 时控制标识, 所述第一超时控制标识用于启动对浏览器用户的超时控制; 根据 所述第一超时控制标识确定所述浏览器用户需要进行超时控制,维护用于判断 所述浏览器用户是否超时所需的条件信息,根据所述条件信息生成超时状态信 息, 所述超时状态信息用于表示所述浏览器用户是否超时, 以使所述客户端在 所述浏览器用户超时时锁定浏览器用户当前的操作界面。
PCT/CN2011/079045 2011-02-12 2011-08-29 一种超时控制的方法、装置及系统 WO2012106951A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP11858277.4A EP2627057A4 (en) 2011-02-12 2011-08-29 TIMEOUT PROCESS, DEVICE AND SYSTEM
US13/339,993 US20120209904A1 (en) 2011-02-12 2011-12-29 Timeout control method, apparatus, and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110036832.5A CN102143226B (zh) 2011-02-12 2011-02-12 一种超时控制的方法、装置及系统
CN201110036832.5 2011-02-12

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/339,993 Continuation US20120209904A1 (en) 2011-02-12 2011-12-29 Timeout control method, apparatus, and system

Publications (1)

Publication Number Publication Date
WO2012106951A1 true WO2012106951A1 (zh) 2012-08-16

Family

ID=44410441

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/079045 WO2012106951A1 (zh) 2011-02-12 2011-08-29 一种超时控制的方法、装置及系统

Country Status (3)

Country Link
EP (1) EP2627057A4 (zh)
CN (1) CN102143226B (zh)
WO (1) WO2012106951A1 (zh)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143226B (zh) * 2011-02-12 2015-04-08 华为技术有限公司 一种超时控制的方法、装置及系统
JP5818966B2 (ja) * 2012-03-12 2015-11-18 京セラドキュメントソリューションズ株式会社 サーバー装置、ログイン管理システム、及び非一時的記録媒体
US9893971B1 (en) * 2012-12-31 2018-02-13 Juniper Networks, Inc. Variable timeouts for network device management queries
US20140351417A1 (en) * 2013-05-21 2014-11-27 Tsz Fung Chan Session timeout method for dhtmlx interface control library
CN104184765B (zh) * 2013-05-23 2018-04-17 阿里巴巴集团控股有限公司 一种请求控制方法及客户端装置和服务器端装置
CN104125267A (zh) * 2014-06-25 2014-10-29 小米科技有限责任公司 账号保护方法、装置及终端设备
CN107786489B (zh) * 2016-08-24 2021-03-26 腾讯科技(深圳)有限公司 访问请求验证方法及装置
CN107086918B (zh) * 2017-03-22 2018-06-26 咪咕数字传媒有限公司 一种客户端验证方法和服务器
CN112433872A (zh) * 2020-10-23 2021-03-02 深圳点猫科技有限公司 一种接口请求超时提醒方法、系统及存储介质
CN116680745B (zh) * 2023-07-28 2024-01-26 北京城建智控科技股份有限公司 一种自动售票方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949774A (zh) * 2006-11-02 2007-04-18 华为技术有限公司 一种Web应用程序会话管理方法与装置
CN101163005A (zh) * 2006-10-13 2008-04-16 中兴通讯股份有限公司 嵌入式web网管的客户端管理方法
CN101847185A (zh) * 2009-03-27 2010-09-29 浙江省农业科学院 基于Flash嵌入式浏览器的网络图片防盗保护方法
CN102143226A (zh) * 2011-02-12 2011-08-03 华为技术有限公司 一种超时控制的方法、装置及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6584505B1 (en) * 1999-07-08 2003-06-24 Microsoft Corporation Authenticating access to a network server without communicating login information through the network server
US6986047B2 (en) * 2001-05-10 2006-01-10 International Business Machines Corporation Method and apparatus for serving content from a semi-trusted server
JP2004062402A (ja) * 2002-07-26 2004-02-26 Fujitsu Ltd タイムアウト管理システム、タイムアウト管理サーバ、およびタイムアウト管理プログラム
US8589946B2 (en) * 2008-09-08 2013-11-19 International Business Machines Corporation Prevention of browser timeout

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163005A (zh) * 2006-10-13 2008-04-16 中兴通讯股份有限公司 嵌入式web网管的客户端管理方法
CN1949774A (zh) * 2006-11-02 2007-04-18 华为技术有限公司 一种Web应用程序会话管理方法与装置
CN101847185A (zh) * 2009-03-27 2010-09-29 浙江省农业科学院 基于Flash嵌入式浏览器的网络图片防盗保护方法
CN102143226A (zh) * 2011-02-12 2011-08-03 华为技术有限公司 一种超时控制的方法、装置及系统

Also Published As

Publication number Publication date
EP2627057A4 (en) 2014-05-07
CN102143226B (zh) 2015-04-08
EP2627057A1 (en) 2013-08-14
CN102143226A (zh) 2011-08-03

Similar Documents

Publication Publication Date Title
WO2012106951A1 (zh) 一种超时控制的方法、装置及系统
US20110258326A1 (en) Method, device, and system for implementing resource sharing
US8464063B2 (en) Trusted group of a plurality of devices with single sign on, secure authentication
US8196186B2 (en) Security architecture for peer-to-peer storage system
US8375425B2 (en) Password expiration based on vulnerability detection
US20120209904A1 (en) Timeout control method, apparatus, and system
US9088561B2 (en) Method and system for authentication in a computer network
WO2017025006A1 (zh) 一种无线网络登录方法及装置
CN110417790B (zh) 区块链实名制排队系统及方法
CN101369893A (zh) 一种对临时用户进行局域网络接入认证的方法
WO2006025989B1 (en) Method and apparatus for automatically re-validating multiple clients of an authentication system
JP2007310512A (ja) 通信システム、サービス提供サーバおよびユーザ認証サーバ
CN111432374A (zh) 网联汽车网络节点身份认证方法、装置及可读存储介质
KR20150026587A (ko) 신규 기기로부터의 로그인 알림 기능 제공 장치, 방법 및 컴퓨터 판독 가능한 기록 매체
JP2011070513A (ja) アクセス制御システム、認証サーバシステムおよびアクセス制御プログラム
JP2005099980A (ja) サービス提供方法、サービス提供プログラム、ホスト装置、および、サービス提供装置
CN111786996A (zh) 一种跨域同步登录态的方法、装置及跨域同步登录系统
KR101190060B1 (ko) 아이덴티티 데이터 관리 장치 및 방법
WO2022105365A1 (zh) 设备控制的方法及系统、电子设备、及存储介质
US9129283B1 (en) Accessing confidential data securely using a trusted network of mobile devices
JP2007115023A (ja) 情報共有システム、情報共有方法および情報共有プログラム
JP6475366B2 (ja) サービスへのアクセスを管理する方法
CN104396216A (zh) 用于识别网络流量特征以关联和管理一个或多个后续流的方法及其装置
US8069155B2 (en) Securing DBMS event notifications
JP4984857B2 (ja) 認証プログラムおよび認証サーバ

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11858277

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2011858277

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE