Automatic logout method, device and system for Web system

An automatic, client-side technology, applied in the computer field, can solve problems such as occupying communication channels, wasting bandwidth, and wasting server resources, so as to achieve automatic login and reduce waste

Active Publication Date: 2020-01-03
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the method of realizing automatic web logout based on AJAX requests requires the client to send AJAX requests regularly. When the comparison result does not exceed the time set by the system, the server must also receive and process AJAX requests regularly, which wastes server resources; During the AJAX request interaction process between the client and the server, the communication channel will be occupied and bandwidth will be wasted

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic logout method, device and system for Web system
  • Automatic logout method, device and system for Web system
  • Automatic logout method, device and system for Web system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] see figure 1 , which is a schematic flowchart of Embodiment 1 of the Web system automatic logout method provided in Embodiment 1 of the present application.

[0058] The method for automatically logging out of the Web system provided by this embodiment, when the Web system logs in, the client establishes a connection with the server, and establishes a session corresponding to the connection. The method includes:

[0059] S101: The server monitors a session destruction event.

[0060] When a user logs in to the Web system, the client establishes a connection with the server through a handshake. The client sends a service access request to the server for the first time, and the server establishes a session when receiving the service access request sent by the client. Based on the session mechanism, the client and the server monitor the interaction information between the client and the server in real time. If the client does not send any request to the server within a ...

Embodiment 2

[0066] see figure 2 , which is a schematic flowchart of Embodiment 2 of the Web system automatic logout method provided in Embodiment 1 of the present application. Compared to figure 1 , this embodiment provides a more specific method for automatically logging out of the Web system.

[0067] When the web system logs in, the client establishes a connection with the server, and establishes a session corresponding to the connection, then the method includes:

[0068] S201: The server monitors a session destruction event.

[0069] During specific implementation, when logging into the Web system, the client can send a request to the server through WebSocket to establish a connection with the server. After the client establishes a connection with the server, the server starts to monitor the session destruction event.

[0070] S202: After the server monitors the occurrence of the session destruction event, the server broadcasts the session destruction event data to the client, s...

Embodiment 3

[0075] see image 3 , which is a schematic flowchart of Embodiment 2 of the method for automatically logging out of the Web system provided in Embodiment 1 of the present application. Compared with figure 1 , this embodiment provides a more specific method for automatically logging out of the Web system.

[0076] When the web system logs in, the client establishes a connection with the server, and establishes a session corresponding to the connection, then the method includes:

[0077] S301: The server monitors a session destruction event.

[0078] S302: After the server detects that the session destruction event occurs, the server broadcasts the session destruction event to the client, so that the client can determine whether to log out after receiving the session destruction event The web system.

[0079] After the server detects that the session destruction event occurs, the server broadcasts the session destruction event to the client. After the client receives the ses...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an automatic logout method, device and system for a Web system. The automatic logout method comprises the steps: a connection between a client and a server is established when the Web system logs in, and a session corresponding to the connection is established, and then the server monitors a session destruction event; after the server monitors that the session destruction event occurs, the server broadcasts a monitoring result to the client, so that the client judges whether to log out of the Web system or not after receiving the monitoring result; and after the client determines to log out of the Web system, the server logs out of the Web system. According to the automatic logout method, the server is used for monitoring the session destruction event, and the serveris triggered to actively broadcast the monitoring result to the client, and then the client is triggered to judge whether the operation of logging out of the Web system is executed or not; and afterdetermining that the Web system is logged out, the Web system is logged out, so that the automatic login of the Web system is realized under the condition that the client does not need to send the AJAX request to the server, and the waste of resources is reduced.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method, device and system for automatically logging out of a Web system. Background technique [0002] When users use Internet applications, the Web system establishes a connection with the server through the client to realize information interaction. After the user logs in to the web system and does not perform any operations within a certain period of time, the front end of the web system will always stay on the last visited page. The user needs to actively send a request to the web system to trigger the logout operation of the web system. Since the logout operation of the web system needs to be triggered after the user sends a request, and the user's physical examination is poor, there is a need to realize the automatic logout of the web system. [0003] In the existing technology, the client can regularly send JavaScript execution asynchronous network requests ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06H04L29/08
CPCH04L63/08H04L67/141H04L67/143H04L69/162
Inventor 丁广杰
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products