CN110166529A - It keeps logging in state method, apparatus, equipment and storage medium - Google Patents
It keeps logging in state method, apparatus, equipment and storage medium Download PDFInfo
- Publication number
- CN110166529A CN110166529A CN201910305911.8A CN201910305911A CN110166529A CN 110166529 A CN110166529 A CN 110166529A CN 201910305911 A CN201910305911 A CN 201910305911A CN 110166529 A CN110166529 A CN 110166529A
- Authority
- CN
- China
- Prior art keywords
- user
- client
- state
- login
- data
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000004044 response Effects 0.000 claims abstract description 32
- 230000006399 behavior Effects 0.000 claims description 42
- 238000012545 processing Methods 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012795 verification Methods 0.000 claims description 4
- 108010001267 Protein Subunits Proteins 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 2
- 238000012546 transfer Methods 0.000 abstract description 2
- 238000004891 communication Methods 0.000 description 11
- 230000005540 biological transmission Effects 0.000 description 6
- 238000012544 monitoring process Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012806 monitoring device Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000004083 survival effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000008092 positive effect Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/143—Termination or inactivation of sessions, e.g. event-controlled end of session
- H04L67/145—Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
Abstract
The present invention relates to remote transfer protocol fields, and in particular to a kind of holding logs in state method, electronic device, computer equipment and storage medium, and method includes: the short connection request of login for obtaining client and sending;It sends and logs in short connection response to client;Judge whether to need to keep the login state of client;It is renewed if so, executing and logging in state;It sends login state and renews response to client.Using the method in the present invention, so that client and server uses the holding for carrying out logging in state for a long time while short connection, on the one hand reduce system loading, the operation on the other hand avoiding user from frequently repeatedly being logged in use improves the usage experience effect of user.
Description
Technical field
The present invention relates to remote transfer protocol fields, are related to a kind of holding login state method, electronic device, computer equipment
And storage medium.
Background technique
Based on cellular service class application, user logs in the basis that state is information security, but this is also many application backstages
The insoluble problem of systematic comparison, at present many cellular service class applications, such as social category and transaction class application, in order to guarantee
User can keep the form of long link without the convenience logged in using backstage.But not only Client handset performance is produced in this way
It is raw to influence, while also to the load of background system and being accompanied with higher requirement.And it can be short using backstage for bank class APP
The form of connection disconnects after a request/response, in today of APP user's rapid growth, APP needs are taken into account
Performance and customer experience, existing APP can not carry out the holding for logging in state for a long time based on the considerations of load performance, so as to cause
The experience that client logs in APP is poor.
Summary of the invention
The holding for logging in state for a long time can not be carried out when the technical problem to be solved by the present invention is in order to using short connection, mentioned
A kind of method, apparatus, computer equipment, storage medium for keeping logging in state is gone out.
The present invention is to solve above-mentioned technical problem by following technical proposals:
A method of it keeps logging in state, which comprises the following steps:
Obtain the short connection request of login that client is sent;
It sends and logs in short connection response to client;
Judge whether to need to keep the login state of client;
It is renewed if so, executing and logging in state;
It sends login state and renews response to client.
In another embodiment, the login state for judging whether to need to keep client includes following sub-step:
The operation behavior data of user are acquired, the operation behavior data include the biobehavioral data and/or page of user
Face operation data;
Judge whether to need to keep the login state of client according to the operation data.
In another embodiment, it sends before logging in short connection response to client further include: log in short connection to described
Request is verified, if verification passes through, is sent and is logged in short connection response to client.
In another embodiment, login state is executed to renew including following sub-step:
The historical operation duration data for obtaining client user, calculate the average operation duration of user;
User's operation behavior portrait is generated according to operation behavior of the average operation duration to user;
It is drawn a portrait according to the user's operation behavior and sets the duration that login state renews.
In another embodiment, the historical operation duration data for obtaining client user, when calculating the average operation of user
Length includes: that acquisition user's n-th logs in login time and the exit time of the application, and calculates the login time and when exiting
Between time difference, user is calculated according to the time difference and logs in the average value of the application.
The invention also discloses a kind of holdings to log in state device, comprising:
First receiving unit, for receiving the short connection request of login that user sends from client;
First processing units, for handle to the short connection request of login and processing result being back to client;
Judging unit is renewed, for judging whether to need the logging state of client;
The second processing unit, for login renew request carry out handle and processing result is sent to client.
In another embodiment, judging unit is renewed further include:
Data acquisition unit, for acquiring the operation data of client user;
Judgment sub-unit, the operation data for being acquired according to data acquisition unit judge whether that sending login state asks
It asks.
In another embodiment, the second processing unit includes:
Second data acquisition unit, for acquiring the historical operation duration data of client user;
Portrait generates subelement, for calculating the average operation duration of user according to collected historical operation duration data
And generate behavior portrait;
Response subelement is renewed, is sent for renewing response concurrent according to the behavior of generation portrait generation to client.
The invention also discloses a kind of computer equipment, including memory and processor, meter is stored on the memory
Calculation machine program realizes the step of keeping login state method as described above when the computer program is executed by the processor.
The invention also discloses a kind of computer readable storage medium, meter is stored in the computer readable storage medium
Calculation machine program, the computer program can be performed by least one processors, to realize that holding as described above logs in state side
The step of method.
The positive effect of the present invention is that:
Holding login method in the present invention by being after a request/response according to monitoring user behavior judgement
The no login state for keeping user, and then execute login state and renew, while enabling client and server to use short connection
Enough holdings for carrying out logging in state for a long time, on the one hand reduce system loading, on the other hand avoid user's frequency in use
The various operation logged in, improves the usage experience effect of user.
Detailed description of the invention
Fig. 1 shows the flow chart that the present invention keeps logging in state embodiment of the method one;
Fig. 2 shows the flow charts of the invention for keeping logging in state embodiment of the method two;
Fig. 3 shows the flow chart that the present invention keeps logging in state embodiment of the method three;
Fig. 4 shows the structure chart that the present invention keeps logging in state device first embodiment.
Fig. 5 shows the structure chart that the present invention keeps logging in state device second embodiment.
Fig. 6 shows the structure chart that the present invention keeps logging in state device 3rd embodiment.
Fig. 7 shows the hardware structure schematic diagram of one embodiment of computer equipment of the present invention.
Specific embodiment
The present invention is further illustrated below by the mode of embodiment, but does not therefore limit the present invention to the reality
It applies among a range.
Firstly, the present invention proposes that a kind of holding logs in state method.
In example 1, as shown in Figs. 1-2, the holding logs in state method and includes the following steps:
Step 1 obtains the short connection request of login that client is sent;
Short connection refers to communication entity both sides, communication connection is established when needing to transmit data, and be transmitted in data
The communication mode of communication connection is disconnected afterwards.The communication entity both sides communicated using short connection, every primary communication connection of foundation
Usually only complete a data transmission.In order to realize the information exchange between client and server-side, need in client and clothes
Business establishes the short connection of HTTP between end, and specific setting is by client and the setting of the header field of the http protocol of server-side
Short link field Connection:close, i.e., disconnect immediately after a request/response, when sending request again,
It need to log in again and establish connection.In this step, the short connection of HTTP is established between applications client and application server end
Afterwards, user can initiate once log in the request of short connection to application server in applications client, if continuous 30 days of user is not
It logging in or downloading logs in for the first time on current device, the short connection request of the login includes account name, password and mobile phone identifying code,
It is logged on after used a period of time and within 30 if user belongs to, short connection request may also include the life of user
Object feature, biological characteristic include gesture, fingerprint, face etc..
Step 2 sends the short connection response of login to client;
After application server termination receives the short connection request of login of applications client transmission, to the short connection request of the login
It is verified, including carrying out pair user data stored in the request data and account management system that log in short connection
Than, if the two is consistent, verification pass through, server end transmission login successfully be indicated to client remind user login successfully.
Step 3 judges whether to need to keep the login state of client, if so, entering step 4;
In the prior art, the client and server for establishing short connection are after a request/response, it should it disconnects,
But practical client may also need to continue between server the interaction of message, which is used in a request/response
Afterwards, judge whether to need to disconnect, avoid user from being repeated as many times in use and log in short connection, keep stepping on for client
State is recorded i.e. after client receives the response of server end, keeps the connection between client and server, user successfully steps on
After record, the initial time that the login state time T of application server end acquisition user, i.e. user log in the application, and stepped on according to this
It records state time T setting and logs in out-of-service time N, i.e., fail and disconnect after user logs in this using N duration, by login time and login
Out-of-service time is stored in the cache unit of server end, while after user successfully logs in, and acquires the operation behavior number of user
According to, and according to the operation behavior data judge whether keep user login state.
Specifically include following sub-step:
Step 3-1, the operation behavior data of user are acquired;
Pass through camera head monitor and identify the operation data of user, the operation data includes the biobehavioral number of user
According to as authorized the content opened camera detection user's sight and whether watch application page attentively by user.
In other embodiments, operation behavior data further include: monitoring screen touch-control state, detection are authorized by user
Whether user, which passes through screen touch-control, is clicked application page icon.
Step 3-2, judge whether to need to keep the login state of client according to the operation behavior data.
Application page icon is perhaps clicked by screen touch-control if detecting user's sight and watching attentively in application page, is executed
It logs in state and renews request, carry out the operation for keeping client to log in state.
By the step, whether can continue to operate in the application page with detecting customer terminal user, and then judge whether to need
The login state for maintaining client avoids disconnecting because connecting after a request/response, influences the subsequent operation of user, influence to use
The usage experience at family.
Step 4, execution log in state and renew request;
Server end collects user after application page carries out biobehavioral operation data, and acquisition user carries out the operation
The initial time of behavior, i.e. the acquisition newest login state time Tn of user, re-start login time calculating, update cache unit
In login state time Tn and log in state out-of-service time Nn, execute new login state out-of-service time Nn.If in the new out-of-service time
In section, user does not carry out any operation, then the out-of-service time it is full after, short connection is automatic disconnects for this.
Step 5, transmission log in state and renew response to client;
After server end more new login state time and login state out-of-service time, sends new logining successfully and be indicated to client
User is reminded to renew success.
If step 3 is judged not need to keep the login state of client, be directly entered step 6: server end cut off with
The short connection of client, if the login state out-of-service time in step 5 has expired, server end cuts off the short connection with client.
In example 2, it is based on the basis of embodiment one, as shown in Fig. 2, the holding login state method includes
Following steps:
For other steps with described in embodiment one, difference is as described below:
Step 3 judges whether to need to keep the login state of client, if so, entering step 4;
In the prior art, the client and server for establishing short connection are after a request/response, it should it disconnects,
But practical client may also need to continue between server the interaction of message, which is used in a request/response
Afterwards, judge whether to need to disconnect, avoid user from being repeated as many times in use and log in short connection, keep stepping on for client
State is recorded i.e. after client receives the response of server end, keeps the connection between client and server, user successfully steps on
After record, the initial time that the login state time T of application server end acquisition user, i.e. user log in the application, and stepped on according to this
Record time T setting and log in out-of-service time N, i.e., log in this in user and disconnected using the Joint failure after N duration, by login time and
The login out-of-service time is stored in the cache unit of server end, while after user successfully logs in, acquiring the operation row of user
For data, and judge whether according to the operation behavior data login state that user is kept after the out-of-service time.Specifically include with
Lower sub-step:
Step 3-1, the operation behavior data of user are acquired;
Monitor and identify that the operation data of user, the operation data include the page operation of user by process monitoring device
Data.The page operation data for monitoring and identifying user are such as authorized by user.
In this embodiment, page operation includes the switching that user is applied between Foreground and Background, and applies and waiting
Switching between state, existing state.
In other embodiments, page operation includes that user is unlocked by password or will apply institute by biological characteristic unlock
Unlocked state is switched to from screen lock state in terminal.
In other embodiments, page operation include user be in after clicking application icon waiting page results respond
State.
Step 3-2, judge whether to need to keep the login state of client according to the operation data.
It will be using from switching to foreground from the background if detecting user, and application is switched to survival shape from wait state
State then executes login state and renews request.
In other embodiments, it is unlocked by password if detecting user or place will be applied whole by biological characteristic unlock
End is switched to unlocked state from screen lock state, then executes login state and renew request.
In other embodiments, if detecting user is in after clicking application icon the shape for waiting page results response
State then executes login state and renews request.
In the third embodiment, it is based on the basis of embodiment one, as shown in figure 3, the holding login state method includes
Following steps:
Other steps are as in the first embodiment, difference is as described below:
Step 4, execution log in state and renew request.
Server end collects user after application page carries out biobehavioral operation data, and acquisition user carries out the operation
The initial time of behavior, i.e. the acquisition newest login state time Tn of user, re-start login time calculating, update cache unit
In login state time Tn and log in state out-of-service time Nn, execute new login state out-of-service time Nn.When wherein logging in state failure
Between calculating specifically includes the following steps:
Step 4-1, the historical operation duration data for obtaining client user, calculate the average operation duration of user.
Acquisition user logs in the historical operation time of the application, and user is calculated by big data and logs in the application
Average operation duration.Acquisition user's n-th logs in login time and the exit time of the application, and calculates login time and move back
Time difference between time out, the average value for calculating all previous time difference that user logs in the application log in the application up to user
Average operation duration.
Step 4-2, user's operation behavior portrait is generated according to operation behavior of the average operation duration to user.
It is drawn a portrait according to the duration that is averaged to the operation behavior of user, portrait includes multiple behavior labels of user, tool
The label of body includes login time section and the average operation duration in the period.Portrait includes the name of user, age, consumption
Level, the average operation duration for logging in the application etc., system carry out automatic according to data acquisition of the user during using application
Mark.
Step 4-3, it is drawn a portrait according to user's operation behavior and sets the duration that login state renews.
Duration is renewed according to the setting of the portrait of user, that is, sets the new login out-of-service time, renewing duration should be greater than user
Average operation duration during this period of time, the login out-of-service time of update are stored in the cache unit of server end and execute and be somebody's turn to do
The new out-of-service time.
Secondly, the invention proposes a kind of holdings to log in state device, described device 20 can be divided into one or more
A module.
For example, Fig. 4 shows the structure chart for keeping logging in 20 first embodiment of state device, it is described in the embodiment
Device 20 can be divided into the first receiving unit 201, first processing units 202, renew judging unit 203, second processing list
Member 204.The concrete function of the module 201-204 will specifically be introduced by being described below.
First receiving unit 201, for receiving the short connection request of login that user sends from client;
First processing units 202, for handle to the short connection request of login and processing result being back to client;
After application server termination receives the short connection request of login of applications client transmission, school is carried out to the short connection request of the login
It tests, including user data stored in the request data and account management system that log in short connection is compared, if two
Person is consistent, then verification pass through, server end transmission login successfully be indicated to client remind user login successfully.
Judging unit 203 is renewed, for judging whether the login shape for needing to keep client after a request/response
State;
The second processing unit 204, for login is renewed carry out handle and processing result is sent to client.Server
End collects user after application page carries out biobehavioral operation data, when acquisition user carries out the starting of the operation behavior
Between, i.e. the acquisition newest login state time Tn of user re-starts login time calculating, when updating the login state in cache unit
Between Tn and log in state out-of-service time Nn, execute new login state out-of-service time Nn, server end more new login state time and login
After the state out-of-service time, send new logining successfully be indicated to client remind user renew success.If in new out-of-service time section
Interior, user does not carry out any operation, then the out-of-service time it is full after, short connection is automatic disconnects for this.
Fig. 5 shows the structure chart for keeping logging in 20 second embodiment of state device.
Renew judging unit 203 further include:
Data acquisition unit 2031, for acquiring the operation behavior data of client user.It include: to be supervised by camera
It controls and identifies that the operation data of user, the operation data include the biobehavioral data of user, such as authorized and opened by user
Whether camera detection user's sight watches the content of application page attentively.
In other embodiments, operation behavior data further include: monitoring screen touch-control state, detection are authorized by user
Whether user, which passes through screen touch-control, is clicked application page icon.
In other embodiments, operation behavior data further include: the behaviour of user is monitored and identified by process monitoring device
Make data, the operation data includes the page operation data of user.The page for monitoring and identifying user is such as authorized by user
Operation data.
In this embodiment, page operation includes the switching that user is applied between Foreground and Background, and applies and waiting
Switching between state, existing state.
In other embodiments, page operation includes that user is unlocked by password or will apply institute by biological characteristic unlock
Unlocked state is switched to from screen lock state in terminal.
In other embodiments, page operation include user be in after clicking application icon waiting page results respond
State.
Judgment sub-unit 2032, the operation behavior data for being acquired according to data acquisition unit, which judge whether to execute, steps on
Record state renews.
Application page icon is perhaps clicked by screen touch-control if detecting user's sight and watching attentively in application page, is executed
It logs in state and renews request, carry out the operation for keeping client to log in state.
It will be using from switching to foreground from the background if detecting user, and application is switched to survival shape from wait state
State then executes login state and renews request.
In other embodiments, it is unlocked by password if detecting user or place will be applied whole by biological characteristic unlock
End is switched to unlocked state from screen lock state, then executes login state and renew request.
In other embodiments, if detecting user is in after clicking application icon the shape for waiting page results response
State then executes login state and renews request.
Fig. 6 shows the structure chart for keeping logging in 20 3rd embodiment of state device.
The second processing unit 204 further include:
Second data acquisition unit 2041 acquires user for acquiring the historical operation duration data of client user
The average operation duration that user logs in the application is calculated by big data in the historical operation time for logging in the application.
Portrait generates subelement 2042, for calculating the average operation of user according to collected historical operation duration data
Duration simultaneously generates behavior portrait, is drawn a portrait according to the duration that is averaged to the operation behavior of user, portrait includes the multiple of user
Behavior label, specific label include login time section and the average operation duration in the period.
Response subelement 2043 is renewed, for renewing duration according to the setting of the portrait of user, that is, sets new login failure
Time, renewing duration should be greater than the average operation duration of user during this period of time, and the login out-of-service time of update is stored in clothes
The cache unit at business device end simultaneously executes the new out-of-service time.
Again, the present invention also puts forward a kind of computer equipment.
As shown in fig.7, being the hardware structure schematic diagram of one embodiment of computer equipment of the present invention.In the present embodiment, institute
Stating computer equipment 2 is that one kind can be automatic to carry out at numerical value calculating and/or information according to the instruction for being previously set or storing
The equipment of reason.For example, it may be smart phone, tablet computer, laptop, desktop computer, rack-mount server, blade
Formula server, (including the service composed by independent server or multiple servers of tower server or Cabinet-type server
Device cluster) etc..As shown, the computer equipment 2 includes at least, but it is not limited to, company can be in communication with each other by system bus
Connect memory 21, processor 22 and network interface 23.Wherein:
The memory 21 includes at least a type of computer readable storage medium, and the readable storage medium storing program for executing includes
Flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), it is static with
Machine accesses memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable
Read memory (PROM), magnetic storage, disk, CD etc..In some embodiments, the memory 21 can be the meter
Calculate the internal storage unit of machine equipment 2, such as the hard disk or memory of the computer equipment 2.In further embodiments, described to deposit
It is hard that reservoir 21 is also possible to the plug-in type being equipped on the External memory equipment of the computer equipment 2, such as the computer equipment 2
Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card
(Flash Card) etc..Certainly, the memory 21 can also both include the internal storage unit of the computer equipment 2 or wrap
Include its External memory equipment.In the present embodiment, the memory 21 is installed on the behaviour of the computer equipment 2 commonly used in storage
Make system and types of applications software, such as realizing the computer program etc. for keeping logging in state method.In addition, described deposit
Reservoir 21 can be also used for temporarily storing the Various types of data that has exported or will export.
The processor 22 can be in some embodiments central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other holdings log in state chip.The processor 22 is commonly used in described in control
The overall operation of computer equipment 2, such as execute control relevant to the computer equipment 2 progress data interaction or communication
With processing etc..In the present embodiment, the processor 22 is for running the program code stored in the memory 21 or processing
Data, such as operation is for realizing the computer program etc. for keeping logging in state method.
The network interface 23 may include radio network interface or wired network interface, which is commonly used in
Communication connection is established between the computer equipment 2 and other computer equipments.For example, the network interface 23 is for passing through net
The computer equipment 2 is connected by network with exterior terminal, establishes data biography between the computer equipment 2 and exterior terminal
Defeated channel and communication connection etc..The network can be intranet (Intranet), internet (Internet), whole world shifting
Dynamic communication system (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband
Code Division Multiple Access, WCDMA), 4G network, 5G network, bluetooth (Bluetooth), the nothings such as Wi-Fi
Line or cable network.
It should be pointed out that Fig. 7 illustrates only the computer equipment 2 with component 21-23, it should be understood that simultaneously
All components shown realistic are not applied, the implementation that can be substituted is more or less component.In the present embodiment, it is stored in
Keep the computer program for logging in state method can be by one or more processors (this reality for realizing described in memory 21
Applying example is processor 22) it is performed, to complete the operation of following steps:
Obtain the short connection request of login that client is sent;
It sends and logs in short connection response to client;
Judge whether to need to keep the login state of client;
It is renewed if so, executing and logging in state;
It sends login state and renews response to client.
In addition, a kind of computer readable storage medium of the present invention, the computer readable storage medium be it is non-volatile can
Storage medium is read, computer program is stored with, the computer program can be performed by least one processor, to realize
Above-mentioned holding logs in the operation of state method or apparatus.
Wherein, computer readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX
Memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable
Except programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..One
In a little embodiments, computer readable storage medium can be the internal storage unit of computer equipment, such as the computer equipment
Hard disk or memory.In further embodiments, computer readable storage medium is also possible to the external storage of computer equipment
The plug-in type hard disk being equipped in equipment, such as the computer equipment, intelligent memory card (Smart Media Card, SMC), safety
Digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, computer readable storage medium can be with
Both including computer equipment internal storage unit and also including its External memory equipment.In the present embodiment, computer-readable storage
Medium is installed on the operating system and types of applications software of computer equipment commonly used in storage, such as is previously used for described in realization
Keep logging in the computer program etc. of state method.In addition, computer readable storage medium can be also used for temporarily storing
Output or the Various types of data that will be exported.
Although specific embodiments of the present invention have been described above, it will be appreciated by those of skill in the art that this is only
For example, protection scope of the present invention is to be defined by the appended claims.Those skilled in the art without departing substantially from
Under the premise of the principle and substance of the present invention, many changes and modifications may be made, but these change and
Modification each falls within protection scope of the present invention.
Claims (10)
1. a kind of method for keeping logging in state, which comprises the following steps:
Obtain the short connection request of login that client is sent;
It sends and logs in short connection response to client;
Judge whether to need to keep the login state of client;
It is renewed if so, executing and logging in state;
It sends login state and renews response to client.
2. the method according to claim 1, wherein judge whether to need to keep the login state of client include with
Lower sub-step:
The operation behavior data of user are acquired, the operation behavior data include biobehavioral data and/or the page behaviour of user
Make data;
Judge whether to need to keep the login state of client according to the operation behavior data.
3. also being wrapped before the method according to claim 1, wherein sending and logging in short connection response to client
It includes: the short connection request of login is verified, if verification passes through, send and log in short connection response to client.
4. renewing the method according to claim 1, wherein executing and logging in state including following sub-step:
The historical operation duration data for obtaining client user, calculate the average operation duration of user;
User's operation behavior portrait is generated according to operation behavior of the average operation duration to user;
It is drawn a portrait according to the user's operation behavior and sets the duration that login state renews.
5. according to the method described in claim 4, it is characterized in that, the historical operation duration data of acquisition client user, meter
The average operation duration for calculating user includes: that acquisition user's n-th logs in login time and the exit time of the application, and calculates institute
The time difference for stating login time and exit time calculates the average value that user logs in the application according to the time difference.
6. a kind of electronic device for keeping logging in state characterized by comprising
First receiving unit, for receiving the short connection request of login that user sends from client;
First processing units, for handle to the short connection request of login and processing result being back to client;
Judging unit is renewed, for judging whether to need to keep the logging state of client;
The second processing unit, for log in state renew carry out handle and processing result is sent to client.
7. device according to claim 6, which is characterized in that renew judging unit further include:
Data acquisition unit, for acquiring the operation behavior data of client user;
Judgment sub-unit, the operation behavior data for being acquired according to data acquisition unit judge whether that executing login state continues
Phase.
8. according to the method described in claim 6, it is characterized in that, the second processing unit includes:
Second data acquisition unit, for acquiring the historical operation duration data of client user;
Portrait generates subelement, for calculating average operation duration and the life of user according to collected historical operation duration data
It embarks on journey for portrait;
Response subelement is renewed, is sent for renewing response concurrent according to the behavior of generation portrait generation login state to client.
9. a kind of computer equipment, including memory and processor, it is characterised in that: be stored with computer journey on the memory
Sequence, the computer program realize that holding according to any one of claims 1 to 5 logs in state when being executed by the processor
The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program, the computer program can be according to any one of claims 1 to 5 to realize performed by least one processor
Kept for the step of logging in state method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910305911.8A CN110166529A (en) | 2019-04-16 | 2019-04-16 | It keeps logging in state method, apparatus, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910305911.8A CN110166529A (en) | 2019-04-16 | 2019-04-16 | It keeps logging in state method, apparatus, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110166529A true CN110166529A (en) | 2019-08-23 |
Family
ID=67639474
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910305911.8A Pending CN110166529A (en) | 2019-04-16 | 2019-04-16 | It keeps logging in state method, apparatus, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110166529A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111460411A (en) * | 2020-04-17 | 2020-07-28 | 支付宝(杭州)信息技术有限公司 | Method and system for keeping login state |
CN112163198A (en) * | 2020-09-04 | 2021-01-01 | 广州江南科友科技股份有限公司 | Host login security detection method, system, device and storage medium |
CN112506647A (en) * | 2020-11-19 | 2021-03-16 | 杭州电魂网络科技股份有限公司 | Method, system, device and storage medium for load balancing of stateful servers |
CN113794708A (en) * | 2021-09-08 | 2021-12-14 | 北京奇艺世纪科技有限公司 | Login identifier distribution method and device |
CN114567662A (en) * | 2022-04-08 | 2022-05-31 | 平安普惠企业管理有限公司 | Login state keeping method and device, computer equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104317392A (en) * | 2014-09-25 | 2015-01-28 | 联想(北京)有限公司 | Information control method and electronic equipment |
CN105528659A (en) * | 2016-01-27 | 2016-04-27 | 浙江大学 | Mobile terminal APP usage prediction method combining with time-context based on sequence mode |
CN107196898A (en) * | 2017-03-14 | 2017-09-22 | 阿里巴巴集团控股有限公司 | Account logon method, page display method, client and server |
CN107515670A (en) * | 2017-01-13 | 2017-12-26 | 维沃移动通信有限公司 | A kind of method and mobile terminal for realizing automatic page turning |
CN108446374A (en) * | 2018-03-16 | 2018-08-24 | 北京三快在线科技有限公司 | User view prediction technique, device, electronic equipment, storage medium |
CN108632301A (en) * | 2017-03-15 | 2018-10-09 | 腾讯科技(深圳)有限公司 | A kind of log in renews processing method and terminal after state fails |
CN108900559A (en) * | 2018-09-26 | 2018-11-27 | 平安普惠企业管理有限公司 | Management method, device, computer equipment and the storage medium of logging on authentication |
CN109087225A (en) * | 2018-08-30 | 2018-12-25 | 广东小天才科技有限公司 | A kind of learning control method and private tutor's equipment based on private tutor's equipment |
CN109254662A (en) * | 2018-09-04 | 2019-01-22 | 平安普惠企业管理有限公司 | Mobile device operation method, apparatus, computer equipment and storage medium |
CN109525561A (en) * | 2018-10-26 | 2019-03-26 | 深圳点猫科技有限公司 | It is a kind of for educating the authorization login method and device of operating system |
-
2019
- 2019-04-16 CN CN201910305911.8A patent/CN110166529A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104317392A (en) * | 2014-09-25 | 2015-01-28 | 联想(北京)有限公司 | Information control method and electronic equipment |
CN105528659A (en) * | 2016-01-27 | 2016-04-27 | 浙江大学 | Mobile terminal APP usage prediction method combining with time-context based on sequence mode |
CN107515670A (en) * | 2017-01-13 | 2017-12-26 | 维沃移动通信有限公司 | A kind of method and mobile terminal for realizing automatic page turning |
CN107196898A (en) * | 2017-03-14 | 2017-09-22 | 阿里巴巴集团控股有限公司 | Account logon method, page display method, client and server |
CN108632301A (en) * | 2017-03-15 | 2018-10-09 | 腾讯科技(深圳)有限公司 | A kind of log in renews processing method and terminal after state fails |
CN108446374A (en) * | 2018-03-16 | 2018-08-24 | 北京三快在线科技有限公司 | User view prediction technique, device, electronic equipment, storage medium |
CN109087225A (en) * | 2018-08-30 | 2018-12-25 | 广东小天才科技有限公司 | A kind of learning control method and private tutor's equipment based on private tutor's equipment |
CN109254662A (en) * | 2018-09-04 | 2019-01-22 | 平安普惠企业管理有限公司 | Mobile device operation method, apparatus, computer equipment and storage medium |
CN108900559A (en) * | 2018-09-26 | 2018-11-27 | 平安普惠企业管理有限公司 | Management method, device, computer equipment and the storage medium of logging on authentication |
CN109525561A (en) * | 2018-10-26 | 2019-03-26 | 深圳点猫科技有限公司 | It is a kind of for educating the authorization login method and device of operating system |
Non-Patent Citations (1)
Title |
---|
张俊芙等: "基于智能卡的远程文件安全管理系统设计和开发", 《信息网络安全》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111460411A (en) * | 2020-04-17 | 2020-07-28 | 支付宝(杭州)信息技术有限公司 | Method and system for keeping login state |
CN111460411B (en) * | 2020-04-17 | 2023-08-04 | 支付宝(杭州)信息技术有限公司 | Method and system for keeping login state |
CN112163198A (en) * | 2020-09-04 | 2021-01-01 | 广州江南科友科技股份有限公司 | Host login security detection method, system, device and storage medium |
CN112506647A (en) * | 2020-11-19 | 2021-03-16 | 杭州电魂网络科技股份有限公司 | Method, system, device and storage medium for load balancing of stateful servers |
CN113794708A (en) * | 2021-09-08 | 2021-12-14 | 北京奇艺世纪科技有限公司 | Login identifier distribution method and device |
CN114567662A (en) * | 2022-04-08 | 2022-05-31 | 平安普惠企业管理有限公司 | Login state keeping method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110166529A (en) | It keeps logging in state method, apparatus, equipment and storage medium | |
US9369521B2 (en) | Naming of distributed business transactions | |
CN108683679B (en) | Multi-account login method, device, equipment and storage medium of Web APP | |
US9311598B1 (en) | Automatic capture of detailed analysis information for web application outliers with very low overhead | |
CN109460343A (en) | System exception monitoring method, device, equipment and storage medium based on log | |
CN111447102B (en) | SDN network device access method and device, computer device and storage medium | |
CN111641563B (en) | Flow self-adaption method and system based on distributed scene | |
CN108881396A (en) | Loading method, device, equipment and the computer storage medium of network data | |
CN108718347A (en) | A kind of domain name analytic method, system, device and storage medium | |
CN105897933A (en) | Service request processing method and device | |
CN103490978A (en) | Terminal, server and message monitoring method | |
CN110071952B (en) | Service call quantity control method and device | |
CN109787963A (en) | Business handling method, apparatus, computer equipment and storage medium | |
CN106685744A (en) | Fault elimination method, apparatus and system | |
CN115086347B (en) | Data synchronization method, device, electronic equipment and storage medium | |
CN112005221A (en) | Automatic remediation via communication with peer devices across multiple networks | |
CN106357764B (en) | The method of data synchronization and server of mobile terminal | |
CN111343101B (en) | Server current limiting method, device, electronic equipment and readable storage medium | |
CN110768855B (en) | Method and device for testing linkmzation performance | |
CN107317721A (en) | It is automatically signing in method, device, computer equipment and user terminal | |
CN113556200A (en) | Clock calibration method, and network security protection method and device based on clock synchronization | |
CN107332821B (en) | Method and device for realizing communication between client and server | |
CN106933718A (en) | Method for monitoring performance and device | |
CN115604041B (en) | Security agent method, system, apparatus, computer device, and storage medium | |
CN110018942A (en) | Application program use information management system, method, apparatus and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190823 |