A client program automatic login and logout method and system

By creating different types of accounts and system services in the client program, automatic login, automatic switching and security protection are achieved, and security risks, cumbersome operations and insufficient configurations are solved during the login process of traditional client programs, and the security, convenience and flexibility of client programs are improved.

CN119760680APending Publication Date: 2025-04-04FUJIAN NEBULA ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411701459.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The "Remember Me" function of traditional client programs has problems such as security risks, cumbersome operations, and inability to personalize configuration, which leads to insecure, inconvenient and lack of flexibility in the user's login process.

Method used

By creating public accounts, repair accounts, engineer accounts and management accounts, and setting corresponding permissions and automatic logout time, create system services for detecting the running status of client programs, periodically detecting the client program status, automatically start and log in, automatically switch accounts based on the idle time of the mouse, and blur the permissionless area when switching to a public account.

Benefits of technology

Improves the security, convenience and flexibility of client programs, protects user data by automatically switching accounts and blur masks, reduces the user's need for manual operations, and supports personalized configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119760680A_ABST
    Figure CN119760680A_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for automatically logging in and out of a client program in the field of computer technology, the method comprising: step S10, creating a public account, a maintenance account, an engineer account, and a management account, and setting the automatic logout duration; step S20, creating a system service, and setting the system service to start automatically when the system is turned on; step S30, the system service periodically detects the running status of the client program, and controls the client program based on the running status; step S40, after the client program logs in, the mouse monitoring thread is automatically started, the mouse idle duration is recorded based on the mouse monitoring thread, and the account currently logged in by the client program is automatically switched based on the mouse idle duration and the automatic logout duration; step S50, when switching to a public account, a fuzzy mask is automatically set to block the area that the public account has no authority to view. The advantages of the present invention are: the security, convenience and flexibility of the use of the client program are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and system for automatically logging in and out of a client program. Background Art

[0002] In modern Internet applications, user login is a very basic function. Users enter their username and password to verify their identity in order to access the client program and use various functions. However, for users who frequently use a specific client program, it is cumbersome to enter their username and password every time they log in. Therefore, many client programs provide a "remember me" function so that users can automatically log in the next time they visit. However, this traditional "remember me" function has the following disadvantages:

[0003] 1. The user's login credentials will be saved on the client. If the client is hacked by an attacker, these credentials may be stolen, allowing the attacker to access the user's account and sensitive information; 2. If the user forgets to exit the client program, their session may remain active, which also increases security risks and may allow others to access the user's account; 3. Users are required to manually enable it every time they access the client program, which is still a cumbersome step for users who frequently use client programs; 4. It is usually a global setting and cannot be personalized for a specific client program or a specific device.

[0004] Therefore, how to provide a method and system for automatically logging in and out of a client program to improve the security, convenience, and flexibility of using the client program has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a method and system for automatically logging in and out of a client program, so as to improve the security, convenience and flexibility of using the client program.

[0006] In a first aspect, the present invention provides a method for automatically logging in and out of a client program, comprising the following steps:

[0007] Step S10, creating a public account, several maintenance accounts, several engineer accounts and several management accounts, and setting permissions and an automatic logout duration for each of the public account, maintenance account, engineer account and management account;

[0008] Step S20: creating a system service for detecting the running status of the client program, and setting the system service to start automatically when the system is turned on;

[0009] Step S30, the system service periodically detects the running status of the client program based on a preset time interval, and controls the client program based on the running status;

[0010] Step S40: After the client program logs in, a mouse monitoring thread is automatically started, the mouse idle time is recorded based on the mouse monitoring thread, and the account currently logged in by the client program is automatically switched based on the mouse idle time and the automatic logout time;

[0011] Step S50: When switching from the maintenance account, engineer account or management account to the public account, a fuzzy mask is automatically set to block the area that the public account has no right to view.

[0012] Furthermore, in step S10, the permissions for setting each public account, maintenance account, engineer account and management account are specifically as follows:

[0013] Set the functions that the public account, maintenance account, engineer account and management account can use in the client program, set the public account to log in without a password, and set the maintenance account, engineer account and management account to log in with a password.

[0014] Furthermore, the step S30 is specifically as follows:

[0015] The system service periodically detects the running status of the client program based on a preset time interval, automatically starts the client program when the client program is not running, automatically logs in to the client program based on the public account, and remains logged in based on the current account when the client program is already running.

[0016] Furthermore, the step S40 specifically includes:

[0017] Step S41: After the client program logs in, a mouse monitoring thread is automatically started, and the mouse monitoring thread detects the position information of the mouse every 1 second, and records the idle time of the mouse based on whether the position information changes;

[0018] Step S42, determining whether the mouse idle time is greater than the automatic logout time, if so, proceeding to step S43; if not, proceeding to step S41;

[0019] Step S43, determine whether the currently logged-in account is a public account. If so, do not log out, clear the mouse idle time, and enter step S41; if not, log out of the current account, automatically log in to the public account, and enter step S50.

[0020] Furthermore, the step S50 further includes:

[0021] When the client program switches from the public account to the logged-out account, the blur mask is cancelled by entering the password of the corresponding account, and a pop-up window is displayed to prompt the unsaved operation content.

[0022] In a second aspect, the present invention provides a client program automatic login and logout system, comprising the following modules:

[0023] An account creation module, used to create a public account, several maintenance accounts, several engineer accounts and several management accounts, and set permissions and an automatic logout duration for each of the public account, maintenance account, engineer account and management account;

[0024] A system service creation module, used to create a system service for detecting the running status of a client program, and to set the system service to start automatically when the system is turned on;

[0025] A running status detection module, used for the system service to periodically detect the running status of the client program based on a preset time interval, and control the client program based on the running status;

[0026] An automatic logout module is used to automatically start a mouse monitoring thread after the client program logs in, record the mouse idle time based on the mouse monitoring thread, and automatically switch the account currently logged in by the client program based on the mouse idle time and the automatic logout time;

[0027] The security protection module is used to automatically set a fuzzy mask to block the area that the public account has no permission to view when switching from the maintenance account, engineer account or management account to the public account.

[0028] Furthermore, in the account creation module, the permissions for setting each public account, maintenance account, engineer account, and management account are specifically as follows:

[0029] Set the functions that the public account, maintenance account, engineer account and management account can use in the client program, set the public account to log in without a password, and set the maintenance account, engineer account and management account to log in with a password.

[0030] Furthermore, the operation status detection module is specifically used for:

[0031] The system service periodically detects the running status of the client program based on a preset time interval, automatically starts the client program when the client program is not running, automatically logs in to the client program based on the public account, and remains logged in based on the current account when the client program is already running.

[0032] Furthermore, the automatic logout module specifically includes:

[0033] A mouse monitoring thread starting unit, used for automatically starting a mouse monitoring thread after the client program logs in, wherein the mouse monitoring thread detects the position information of the mouse every 1 second and records the idle time of the mouse based on whether the position information changes;

[0034] An idle time monitoring unit, used to determine whether the idle time of the mouse is greater than the automatic logout time, and if so, enter the account switching unit; if not, enter the mouse monitoring thread starting unit;

[0035] The account switching unit is used to determine whether the currently logged-in account is a public account. If so, the user does not log out, clears the mouse idle time, and enters the mouse monitoring thread starting unit; if not, the user logs out of the current account, automatically logs in to the public account, and enters the security protection module.

[0036] Furthermore, the security protection module is also used for:

[0037] When the client program switches from the public account to the logged-out account, the blur mask is cancelled by entering the password of the corresponding account, and a pop-up window is displayed to prompt the unsaved operation content.

[0038] The advantages of the present invention are:

[0039] By creating a public account, a maintenance account, an engineer account and a management account and setting corresponding permissions, setting the automatic logout time, and then creating a system service for detecting the running status of the client program and automatically starting it when the system is turned on; the system service periodically detects the running status of the client program, automatically starts the client program when the client program is not running, automatically logs in to the client program based on the public account, and automatically starts a mouse monitoring thread after the client program logs in, records the mouse idle time based on the mouse monitoring thread, and automatically switches the account currently logged in by the client program based on the mouse idle time and the automatic logout time. When switching from the maintenance account, engineer account or management account to the public account, a fuzzy mask is automatically set to block the area that the public account has no permission to view; that is, the client program is based on the automatic logout time It automatically switches the maintenance account, engineer account or management account to the public account, automatically blocks the areas that the public account has no permission to view, and does not save the password (login credentials). The next time you switch to the maintenance account, engineer account or management account, you need to re-enter the password. The public account only has basic functions to ensure the security of client program login and logout; it automatically starts the client program based on the system service, and automatically switches accounts based on the automatic logout time, which ensures that the client program is always logged in with a public account with basic functions, so that users can perform basic operations to ensure the convenience of client program login and logout; the automatic logout time and time interval can be set as needed to ensure the flexibility of client program login and logout, which ultimately greatly improves the security, convenience and flexibility of client program use. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0041] Figure 1 The present invention is a flowchart of a method for automatically logging in and out of a client program.

[0042] Figure 2 It is a structural schematic diagram of a client program automatic login and logout system of the present invention. DETAILED DESCRIPTION

[0043] The technical solution in the embodiments of the present application has the following overall idea: the client program automatically switches the maintenance account, engineer account or management account to the public account based on the automatic logout duration, and automatically blocks the areas that the public account has no permission to view. The next time you switch to the maintenance account, engineer account or management account, you need to re-enter the password, and the public account only has basic functions to ensure the security of the client program logging in and out; the client program is automatically started based on the system service, and the account is automatically switched based on the automatic logout duration, which ensures that the client program is always logged in with a public account with basic functions to ensure the convenience of logging in and out of the client program; the automatic logout duration and time interval can be set as needed to ensure the flexibility of logging in and out of the client program.

[0044] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of a method for automatically logging in and out of a client program of the present invention comprises the following steps:

[0045] Step S10, creating a public account (operator), several maintenance accounts (maintenance workers), several engineer accounts (engineers) and several management accounts (administrators), and setting permissions and an automatic logout duration for each of the public account, maintenance account, engineer account and management account;

[0046] Step S20: creating a system service for detecting the running status of the client program, and setting the system service to start automatically when the system is turned on;

[0047] Step S30, the system service periodically detects the running status of the client program based on a preset time interval, and controls the client program based on the running status; the time interval is preferably 3 seconds;

[0048] Step S40: After the client program logs in, a mouse monitoring thread is automatically started, the mouse idle time is recorded based on the mouse monitoring thread, and the account currently logged in by the client program is automatically switched based on the mouse idle time and the automatic logout time;

[0049] Step S50: When switching from the maintenance account, engineer account or management account to the public account, a fuzzy mask is automatically set to block the area that the public account has no right to view.

[0050] In step S10, the permissions for setting each public account, maintenance account, engineer account and management account are specifically as follows:

[0051] Set the functions that the public account, maintenance account, engineer account and management account can use in the client program, set the public account to log in without a password, and set the maintenance account, engineer account and management account to log in with a password. The public account only has basic functions such as accessing the test interface and the operation log interface; since the interface for logging in to the public account does not contain sensitive information, no password is required.

[0052] The step S30 is specifically as follows:

[0053] The system service periodically detects the running status of the client program based on a preset time interval, automatically starts the client program when the client program is not running, automatically logs in to the client program based on the public account, and remains logged in based on the current account when the client program is already running.

[0054] The step S40 specifically includes:

[0055] Step S41: After the client program logs in, a mouse monitoring thread is automatically started, and the mouse monitoring thread detects the position information of the mouse every 1 second, and records the idle time of the mouse based on whether the position information changes;

[0056] Step S42, determining whether the mouse idle time is greater than the automatic logout time, if so, proceeding to step S43; if not, proceeding to step S41;

[0057] Step S43, determine whether the currently logged-in account is a public account. If so, do not log out, clear the mouse idle time, and enter step S41; if not, log out of the current account, automatically log in to the public account, and enter step S50.

[0058] In specific implementation, a variable count can be set to record the length of time that the mouse position information remains unchanged; if the position information remains unchanged, count+1. When count is greater than the automatic logout duration, the current logged-in account is determined. If it is a public account, the account will not be logged out, count will be cleared to 0, and a new round will be restarted; otherwise, the account will be logged out automatically, the name of the currently logged-out account will be recorded, and then the public account will be automatically logged in. The software menu will be reloaded according to the permissions, count will be cleared to 0, and a new round will be restarted; if the position information has changed, count will be cleared to 0.

[0059] The step S50 further includes:

[0060] When the client program switches from the public account to the logged-out account, the blur mask is cancelled by entering the password of the corresponding account, and a pop-up window is displayed to prompt the unsaved operation content.

[0061] A preferred embodiment of the present invention for automatically logging in and out of a system through a client program includes the following modules:

[0062] An account creation module is used to create a public account (operator), several maintenance accounts (maintenance workers), several engineer accounts (engineers) and several management accounts (administrators), and set permissions for each of the public account, maintenance account, engineer account and management account, as well as an automatic logout duration;

[0063] A system service creation module, used to create a system service for detecting the running status of a client program, and to set the system service to start automatically when the system is turned on;

[0064] A running status detection module, used for the system service to periodically detect the running status of the client program based on a preset time interval, and control the client program based on the running status; the time interval is preferably 3 seconds;

[0065] An automatic logout module is used to automatically start a mouse monitoring thread after the client program logs in, record the mouse idle time based on the mouse monitoring thread, and automatically switch the account currently logged in by the client program based on the mouse idle time and the automatic logout time;

[0066] The security protection module is used to automatically set a fuzzy mask to block the area that the public account has no permission to view when switching from the maintenance account, engineer account or management account to the public account.

[0067] In the account creation module, the permissions for setting each public account, maintenance account, engineer account, and management account are specifically as follows:

[0068] Set the functions that the public account, maintenance account, engineer account and management account can use in the client program, set the public account to log in without a password, and set the maintenance account, engineer account and management account to log in with a password. The public account only has basic functions such as accessing the test interface and the operation log interface; since the interface for logging in to the public account does not contain sensitive information, no password is required.

[0069] The operation status detection module is specifically used for:

[0070] The system service periodically detects the running status of the client program based on a preset time interval, automatically starts the client program when the client program is not running, automatically logs in to the client program based on the public account, and remains logged in based on the current account when the client program is already running.

[0071] The automatic logout module specifically includes:

[0072] A mouse monitoring thread starting unit, used for automatically starting a mouse monitoring thread after the client program logs in, wherein the mouse monitoring thread detects the position information of the mouse every 1 second and records the idle time of the mouse based on whether the position information changes;

[0073] An idle time monitoring unit, used to determine whether the idle time of the mouse is greater than the automatic logout time, and if so, enter the account switching unit; if not, enter the mouse monitoring thread starting unit;

[0074] The account switching unit is used to determine whether the currently logged-in account is a public account. If so, the user does not log out, clears the mouse idle time, and enters the mouse monitoring thread starting unit; if not, the user logs out of the current account, automatically logs in to the public account, and enters the security protection module.

[0075] In specific implementation, a variable count can be set to record the length of time that the mouse position information remains unchanged; if the position information remains unchanged, count+1. When count is greater than the automatic logout duration, the current logged-in account is determined. If it is a public account, the account will not be logged out, count will be cleared to 0, and a new round will be restarted; otherwise, the account will be logged out automatically, the name of the currently logged-out account will be recorded, and then the public account will be automatically logged in. The software menu will be reloaded according to the permissions, count will be cleared to 0, and a new round will be restarted; if the position information has changed, count will be cleared to 0.

[0076] The safety protection module is also used for:

[0077] When the client program switches from the public account to the logged-out account, the blur mask is cancelled by entering the password of the corresponding account, and a pop-up window is displayed to prompt the unsaved operation content.

[0078] In summary, the advantages of the present invention are:

[0079] By creating a public account, a maintenance account, an engineer account and a management account and setting corresponding permissions, setting the automatic logout time, and then creating a system service for detecting the running status of the client program and automatically starting it when the system is turned on; the system service periodically detects the running status of the client program, automatically starts the client program when the client program is not running, automatically logs in to the client program based on the public account, and automatically starts a mouse monitoring thread after the client program logs in, records the mouse idle time based on the mouse monitoring thread, and automatically switches the account currently logged in by the client program based on the mouse idle time and the automatic logout time. When switching from the maintenance account, engineer account or management account to the public account, a fuzzy mask is automatically set to block the area that the public account has no permission to view; that is, the client program is based on the automatic logout time It automatically switches the maintenance account, engineer account or management account to the public account, automatically blocks the areas that the public account has no permission to view, and does not save the password (login credentials). The next time you switch to the maintenance account, engineer account or management account, you need to re-enter the password. The public account only has basic functions to ensure the security of client program login and logout; it automatically starts the client program based on the system service, and automatically switches accounts based on the automatic logout time, which ensures that the client program is always logged in with a public account with basic functions, so that users can perform basic operations to ensure the convenience of client program login and logout; the automatic logout time and time interval can be set as needed to ensure the flexibility of client program login and logout, which ultimately greatly improves the security, convenience and flexibility of client program use.

[0080] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A method for automatically logging in and out of a client program, characterized in that: The steps include: Step S10, creating a public account, several maintenance accounts, several engineer accounts and several management accounts, and setting permissions and an automatic logout duration for each of the public account, maintenance account, engineer account and management account; Step S20: creating a system service for detecting the running status of the client program, and setting the system service to start automatically when the system is turned on; Step S30, the system service periodically detects the running status of the client program based on a preset time interval, and controls the client program based on the running status; Step S40: After the client program logs in, a mouse monitoring thread is automatically started, the mouse idle time is recorded based on the mouse monitoring thread, and the account currently logged in by the client program is automatically switched based on the mouse idle time and the automatic logout time; Step S50: When switching from the maintenance account, engineer account or management account to the public account, a fuzzy mask is automatically set to block the area that the public account has no right to view.

2. A method for automatically logging in and out of a client program as claimed in claim 1, characterized in that: In step S10, the permissions for setting each public account, maintenance account, engineer account and management account are specifically as follows: Set the functions that the public account, maintenance account, engineer account and management account can use in the client program, set the public account to log in without a password, and set the maintenance account, engineer account and management account to log in with a password.

3. A method for automatically logging in and out of a client program as claimed in claim 1, characterized in that: The step S30 is specifically as follows: The system service periodically detects the running status of the client program based on a preset time interval, automatically starts the client program when the client program is not running, automatically logs in the client program based on the public account, and keeps logged in based on the current account when the client program is already running.

4. A method for automatically logging in and out of a client program as claimed in claim 1, characterized in that: The step S40 specifically includes: Step S41: After the client program logs in, a mouse monitoring thread is automatically started, and the mouse monitoring thread detects the position information of the mouse every 1 second, and records the idle time of the mouse based on whether the position information changes; Step S42, determining whether the mouse idle time is greater than the automatic logout time, if so, proceeding to step S43; if not, proceeding to step S41; Step S43, determine whether the currently logged-in account is a public account. If so, do not log out, clear the mouse idle time, and enter step S41; if not, log out of the current account, automatically log in to the public account, and enter step S50.

5. A method for automatically logging in and out of a client program as claimed in claim 1, characterized in that: The step S50 further includes: When the client program switches from the public account to the logged-out account, the blur mask is cancelled by entering the password of the corresponding account, and a pop-up window is displayed to prompt the unsaved operation content.

6. A client program automatically logs in and out of the system, characterized in that: Includes the following modules: An account creation module, used to create a public account, several maintenance accounts, several engineer accounts and several management accounts, and set permissions and an automatic logout duration for each of the public account, maintenance account, engineer account and management account; A system service creation module, used to create a system service for detecting the running status of a client program, and to set the system service to start automatically when the system is turned on; A running status detection module, used for the system service to periodically detect the running status of the client program based on a preset time interval, and control the client program based on the running status; An automatic logout module is used to automatically start a mouse monitoring thread after the client program logs in, record the mouse idle time based on the mouse monitoring thread, and automatically switch the account currently logged in by the client program based on the mouse idle time and the automatic logout time; The security protection module is used to automatically set a fuzzy mask to block the area that the public account has no permission to view when switching from the maintenance account, engineer account or management account to the public account.

7. A client program automatic login and logout system as claimed in claim 6, characterized in that: In the account creation module, the permissions for setting each public account, maintenance account, engineer account, and management account are specifically as follows: Set the functions that the public account, maintenance account, engineer account and management account can use in the client program, set the public account to log in without a password, and set the maintenance account, engineer account and management account to log in with a password.

8. A client program automatic login and logout system as claimed in claim 6, characterized in that: The operation status detection module is specifically used for: The system service periodically detects the running status of the client program based on a preset time interval, automatically starts the client program when the client program is not running, automatically logs in the client program based on the public account, and keeps logged in based on the current account when the client program is already running.

9. A client program automatic login and logout system as claimed in claim 6, characterized in that: The automatic logout module specifically includes: A mouse monitoring thread starting unit, used for automatically starting a mouse monitoring thread after the client program logs in, wherein the mouse monitoring thread detects the position information of the mouse every 1 second and records the idle time of the mouse based on whether the position information changes; An idle time monitoring unit, used to determine whether the idle time of the mouse is greater than the automatic logout time, and if so, enter the account switching unit; if not, enter the mouse monitoring thread starting unit; The account switching unit is used to determine whether the currently logged-in account is a public account. If so, the user does not log out, clears the mouse idle time, and enters the mouse monitoring thread starting unit; if not, the user logs out of the current account, automatically logs in to the public account, and enters the security protection module.

10. A client program automatic login and logout system as claimed in claim 6, characterized in that: The safety protection module is also used for: When the client program switches from the public account to the logged-out account, the blur mask is cancelled by entering the password of the corresponding account, and a pop-up window is displayed to prompt the unsaved operation content.