CN106982226A - Automatic logging method and device - Google Patents

Automatic logging method and device Download PDF

Info

Publication number
CN106982226A
CN106982226A CN201710299061.6A CN201710299061A CN106982226A CN 106982226 A CN106982226 A CN 106982226A CN 201710299061 A CN201710299061 A CN 201710299061A CN 106982226 A CN106982226 A CN 106982226A
Authority
CN
China
Prior art keywords
automated log
login
user
option
user terminal
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.)
Granted
Application number
CN201710299061.6A
Other languages
Chinese (zh)
Other versions
CN106982226B (en
Inventor
张恒普
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu anyxun Technology Co., Ltd.
Original Assignee
Chengdu Qilu Technology Co Ltd
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 Chengdu Qilu Technology Co Ltd filed Critical Chengdu Qilu Technology Co Ltd
Priority to CN201710299061.6A priority Critical patent/CN106982226B/en
Publication of CN106982226A publication Critical patent/CN106982226A/en
Application granted granted Critical
Publication of CN106982226B publication Critical patent/CN106982226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations

Landscapes

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

Abstract

The present invention provides a kind of automatic logging method and device, and applied to the user terminal including login interface, the login interface is provided with automated log on option.Method includes:When logining successfully every time, judge whether the automated log on option of login interface is cancelled;Whether when automated log on option is cancelled, be stored with user login information in detection user terminal;Be stored with the user terminal user login information when, at interval of the first preset duration by Auto Login feature hold time extend to current time after the second preset duration.In this way, when being again introduced into user's short time, can direct automated log on, without manually operated, can preferably meet user's request, enhance Consumer's Experience.

Description

Automatic logging method and device
Technical field
The present invention relates to Internet technical field, in particular to a kind of automatic logging method and device.
Background technology
With the development of Internet technology, people are accessing various websites daily.At present, each website is stepped on Record interface is usually provided with automated log on option.For the website that part is conventional, people can select the automated log on option, be easy to Next time can directly access the various resources of website, without manual entry again.In use, for some purposes, User may select to cancel automated log on.In the prior art, automated log on option is once cancel, and user accesses the website next time When, just must manual entry.
Found however, being studied through inventor, in actual applications, certain user is cancelling the automated log on choosing of a certain website After, the website may be still accessed again in a short time.Because automated log on option has been cancelled, even exiting It is again introduced into, it is also necessary to manual entry again, uses extremely inconvenient, it is impossible to meet user's need immediately after the Website page Ask.
The content of the invention
, should it is an object of the invention to provide a kind of automatic logging method in order to overcome above-mentioned deficiency of the prior art For user terminal, the user terminal includes login interface, and the login interface is provided with automated log on option, methods described Including:
When logining successfully every time, judge whether the automated log on option of login interface is cancelled;
When the automated log on option is cancelled, the user login information that whether is stored with the user terminal is detected;
Be stored with the user terminal user login information when, at interval of the first preset duration by Auto Login feature Hold time extend to current time after the second preset duration, first preset duration be less than described second it is default when It is long.
Further, in the above-mentioned methods, every time login successfully when, judge login interface automated log on option whether The step of being cancelled, including:
The pagefile of the request target page, the pagefile includes log-on message processing script;
When logining successfully every time, the log-on message processing script is performed, the automated log on option of login interface is judged Whether it is cancelled.
Further, in the above-mentioned methods, be stored with the first cookie information, described first in the user terminal Cookie information includes automated log on flag bit;Judge the step of whether the automated log on option of login interface is cancelled, wrap Include:
Automated log on flag bit is obtained from first cookie information;
Whether the automated log on option for judging login interface according to the value of the automated log on flag bit is cancelled.
Further, in the above-mentioned methods, when the automated log on option is cancelled, detecting in the user terminal is It is no be stored with user login information the step of, including:
When the automated log on option is cancelled, detects whether to be stored with the user terminal and stepped on for recording user Record the second cookie information of information;
When there is the second cookie information in the user terminal, the User logs in that is stored with the user terminal is judged Information.
Further, in the above-mentioned methods, at interval of the first preset duration by the extension of holding time of Auto Login feature After to current time the step of the second preset duration, including:
The effective time of second cookie information is adjusted to current time at interval of the first preset duration Two preset durations.
Another object of the present invention is to provide a kind of automatic login device, applied to user terminal, the user terminal Including login interface, the login interface is provided with automated log on option, and described device includes:
Automated log on detection module, for every time login successfully when, judge login interface automated log on option whether It is cancelled;
User login information detection module, for when the automated log on option is cancelled, detecting the user terminal In whether be stored with user login information;
Time delay module, for be stored with the user terminal user login information when, at interval of the first preset duration By Auto Login feature hold time extend to current time after the second preset duration, first preset duration be less than institute State the second preset duration.
Further, in said apparatus, the automated log on detection module includes:
Pagefile asks submodule, for the pagefile of the request target page, and the pagefile includes logging in Information processing script;
Automated log on detection sub-module, for when logining successfully every time, performing the log-on message processing script, judges Whether the automated log on option of login interface is cancelled.
Further, in said apparatus, be stored with the first cookie information in the user terminal, and described first Cookie information includes automated log on flag bit;The judging submodule includes:
Automated log on flag bit acquiring unit, for obtaining automated log on flag bit from first cookie information;
Judging unit, for judged according to the value of the automated log on flag bit login interface automated log on option whether It is cancelled.
Further, in said apparatus, the user login information detection module includes:
2nd cookie detection sub-modules, for when the automated log on option is cancelled, detecting the user terminal In whether be stored with for the second cookie information for recording user login information;
User login information judging submodule, during for there is the second cookie information in the user terminal, judges Be stored with user login information in the user terminal.
Further, in said apparatus, the time delay module is at interval of the first preset duration by Auto Login feature The mode for the second preset duration after extending to current time of holding time, including:
The effective time of second cookie information is adjusted to current time at interval of the first preset duration Two preset durations.
Automatic logging method and device provided in an embodiment of the present invention, when logining successfully every time, judge whether user takes Disappear the automated log on option of login interface, and after detecting user and cancelling the automated log on option of login interface, detection user is whole Whether user login information, when being stored with user login information in detecting user terminal if being stored with end, periodically will Second preset duration after the holding time of Auto Login feature extends to current time.In this way, second after user is exiting When being again introduced into preset duration, can direct automated log on, logged in without manually operated.This design meets making for user With custom, Consumer's Experience is significantly improved.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be attached to what is used required in embodiment Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore is not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is that a kind of user terminal provided in an embodiment of the present invention and server interact schematic diagram.
Fig. 2 is a kind of block diagram of user terminal provided in an embodiment of the present invention.
Fig. 3 is a kind of schematic flow sheet of automatic logging method provided in an embodiment of the present invention.
Fig. 4 is a kind of schematic diagram of login interface provided in an embodiment of the present invention.
Fig. 5 is the sub-step schematic diagram of step S101 shown in Fig. 3.
Fig. 6 is the sub-step schematic diagram of step S202 shown in Fig. 5.
Fig. 7 is the sub-step schematic diagram of step S102 shown in Fig. 3.
Fig. 8 is a kind of functional block diagram of automatic login device provided in an embodiment of the present invention.
Fig. 9 is the submodule block diagram of automated log on detection module shown in Fig. 8.
Figure 10 is the submodule block diagram of automated log on detection sub-module shown in Fig. 8.
Figure 11 is the submodule block diagram of user login information detection module shown in Fig. 8.
Icon:100- user terminals;110- automatic login devices;111- automated log on detection modules;1111- pagefiles Ask submodule;1112- automated log on detection sub-modules;301- automated log on flag bit acquiring units;302- judging units; 112- user login information detection modules;The cookie detection sub-modules of 1121- the 2nd;1122- user login informations judge submodule Block;113- time delay modules;120- memories;130- processors;140- communication units;150- display units;200- servers; 300- networks.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.The present invention implementation being generally described and illustrated herein in the accompanying drawings The component of example can be arranged and designed with a variety of configurations.
Therefore, the detailed description of embodiments of the invention below to providing in the accompanying drawings is not intended to limit claimed The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiment in the present invention, this area is common The every other embodiment that technical staff is obtained under the premise of creative work is not made, belongs to the model that the present invention is protected Enclose.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined in individual accompanying drawing, then it further need not be defined and explained in subsequent accompanying drawing.
Automatic logging method and device provided in an embodiment of the present invention can be applied in application environment as shown in Figure 1.Such as Shown in Fig. 1, user terminal 100 can be communicated by network 300 with server 200, to realize data interaction.In the embodiment of the present invention In, user terminal 100 can be, but be not limited to, PC (personal computer, PC), smart mobile phone, flat board electricity Brain, personal digital assistant (personal digital assistant, PDA), mobile internet surfing equipment (mobile Internat Device, MID) etc., server 200 can be web server.
In embodiments of the present invention, browser is installed in user terminal 100, it is corresponding with server 200, it is that user carries For service, automatic logging method and device provided in an embodiment of the present invention can run on the browser of user terminal 100.Need It is bright, be also equipped with other applications in user terminal 100, automatic logging method provided in an embodiment of the present invention and Device also can run in the other applications of user terminal 100.
Referring to Fig. 2, Fig. 2 is the block diagram of user terminal 100 shown in Fig. 1.User terminal 100 includes automated log on Device 110, memory 120, processor 130, communication unit 140 and display unit 150.
The memory 120, processor 130, communication unit 140 and each element of display unit 150 each other directly or It is electrically connected with indirectly, to realize the transmission or interaction of data.For example, these elements each other can be logical by one or more Interrogate bus or signal wire is realized and is electrically connected with.Automatic login device 110 can be with software or firmware including at least one (firmware) form is stored in memory 120 or is solidificated in the software function mould in the operating system of user terminal 100 Block.Processor 130, which is used to perform, is stored in executable module in memory 120, such as included by automatic login device 110 Software function module and computer program etc..
Wherein, memory 120 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc.. Wherein, memory 120 is used for storage program, and processor 130 is used to perform described program after execute instruction is received.
The processor 130 can be a kind of IC chip, the disposal ability with signal.Above-mentioned processor 130 can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;Can also be digital signal processor (DSP)), application specific integrated circuit (ASIC), scene Programmable gate array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hardware group Part.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be with It is microprocessor or the processor can also be any conventional processor etc..
The communication unit 140 is used for the communication connection set up between user terminal 100 and server 200.
The display unit 150 provided between user terminal 100 and user an interactive interface (such as login interface, User interface etc.) or for showing data to be displayed.Implement Li Zhong in the present invention, the display unit 150 can be liquid Crystal display or touch control display, the present embodiment are without limitation.
It should be appreciated that structure shown in Fig. 2 is only signal.The user terminal 100 can have than shown in Fig. 2 it is more or Less component, or with the configuration different from shown in Fig. 2.Wherein, each component shown in Fig. 2 can by software, hardware or Its combination of person is realized.
Referring to Fig. 3, Fig. 3 is a kind of schematic flow sheet of automatic logging method provided in an embodiment of the present invention.Below will So that the automatic logging method runs on the browser in user terminal 100 as an example, with reference to Fig. 3 to the automatic logging method Specific steps and flow are described in detail.
Step S101:When logining successfully every time, judge whether the automated log on option of login interface is cancelled.
In actual applications, when user website a certain by browser access, first can browser address field it is defeated Enter the URL addresses of the website, it will be appreciated that " inputting the URL addresses of the website at least " described herein include be manually entered and The network address two ways needed for the network address of collection is directly chosen.After user inputs the URL addresses of the website and clicks on confirmation, use Family terminal 100 can send page request to server 200.Server 200 is received after the page request, to user terminal 100 send pagefile (for example, html file).User terminal 100 is received after the pagefile, can be shown as shown in Figure 4 Login interface, be provided with automated log on option on the login interface.The side of the automated log on option can be provided with Check box, by choosing or cancelling the check box, can select or cancel Auto Login feature.
Alternatively, log-on message can be included in the pagefile and handles script, the log-on message processing script can To be write using JavaScript language, that is, log-on message processing script can be JS scripts.When user browses at this In device during the Successful login website, the log-on message processing script can be triggered automatically and is performed.In the present embodiment, it is described automatic Login method can be realized by the log-on message script.
Thus, alternatively, as shown in figure 5, the step S101 can include two sub-steps of step S201 and step S202 Suddenly.
Step S201:The pagefile of the request target page, the pagefile includes log-on message processing script.
Step S202:When logining successfully every time, the log-on message processing script is performed, the automatic of login interface is judged Log in whether option is cancelled.
It should be noted that in the present embodiment, the browser by perform the log-on message handle script can be with Realize each step in addition to step S201 in the automatic logging method.
In the present embodiment, alternatively, when logining successfully every time, the server 200 can be created including automated log on mark First cookie information of will position, and first cookie information is sent to the browser progress of the user terminal 100 Storage.Whether the value of the automated log on flag bit chooses the automated log on option phase with user before this register Match somebody with somebody.
If for example, user unselected automated log on option, the automated log on mark before this register The value of position can be 0, if user chooses the automated log on option, the automated log on flag bit before this register Value can be 1.Wherein, first cookie information fails when user leaves the page of the website.
Alternatively, first cookie information can also be created and persistence when user first logs into successfully, When logining successfully every time, automated log on option whether is chosen to carry out automated log on flag bit according to user before this register Update.The present embodiment is without limitation.
Thus, in the present embodiment, it can judge whether user cancels automatically by the value of the automated log on flag bit Log in option.
Alternatively, as shown in fig. 6, the step S202 can include two sub-steps of step S301 and step S302.
Step S301:Automated log on flag bit is obtained from first cookie information.
In the present embodiment, step S301 can be realized by code below.
Step S302:Whether the automated log on option for judging login interface according to the value of the automated log on flag bit is taken Disappear.
That is, whether the automated log on option that can judge login interface according to above-mentioned _ autologin value is taken Disappear.Assuming that when user chooses automated log on option, the value of automated log on flag bit is 1, during the unselected automated log on option of user, The value of automated log on flag bit is 0, then can determine that user eliminates automated log on option when _ autologin value is 0.
Step S102:When the automated log on option is cancelled, the use that whether is stored with the user terminal 100 is detected Family log-on message.
It is appreciated that the premise for realizing automated log on is to store user login information in browser, therefore, detecting , it is necessary to the user login information that whether is stored with user terminal 100 be judged, in the use that is stored with during user's cancellation automated log on option During the log-on message of family, Auto Login feature could be held time and extended.Therefore, taken detecting automated log on option After disappearing, in addition it is also necessary to detect the user login information that whether is stored with user terminal 100.
In actual applications, when user first logs into website, if user have selected automated log on, the service of the website Device 200 can create the second cookie information for recording user login information, and by second cookie information send to The browser of user terminal 100 is stored.The effective time of second cookie information can be acquiescence duration, for example, One month.When second cookie information expires, user terminal 100 can be automatically deleted second cookie information. That is, second cookie information that whether is stored with user terminal 100 is equal in user terminal 100 User logs in that whether is stored with Information.
It should be appreciated that " the first logging into " described in the present embodiment refers to, stepped on for the first time after user login information is emptied Record website.
Thus, alternatively, referring to Fig. 7, the step S102 can include two sub-steps of step S401 and step S402 Suddenly.
Step S401:When the automated log on option is cancelled, the use that whether is stored with the user terminal 100 is detected In the second cookie information of record user login information.When there is the second cookie information in the user terminal 100, hold Row step S402, when the second cookie information is not present in the user terminal 100, performs step S403.
Step S402:Judge the user login information that is stored with the user terminal 100.
S403:Judge in the user terminal 100 without storage user login information.
Step S103:Be stored with the user terminal 100 user login information when, at interval of the first preset duration will Second preset duration after the holding time of Auto Login feature extends to current time.
It should be noted that it is an object of the present invention to cancelling automated log on option in user and logging in successful situation Under, if user accesses the website again in the second preset duration after leaving Website page, it is still able to realize automated log on.
In actual applications, the time that user leaves the website is uncertain, thus, Website page is not left in user Period, can at interval of the second preset duration by Auto Login feature hold time extend to current time after second preset Duration.In this way, when user leaves the Website page, will stop updating holding time for Auto Login feature, that is, stepping on automatically Second preset duration after recording function can be maintained at the time of user leaves Website page.
It should be appreciated that the second preset duration of the second preset duration and non-critical described in the present embodiment, pre- with second If duration differs the period of the first preset duration, the second preset duration can be still regarded as.
In the present embodiment, first preset duration is less than the second preset duration.For example, first preset duration can Think 30 seconds, second preset duration can be 6 minutes, tool of the present embodiment to the first preset duration and the second preset duration Body numerical value is not limited.
Using first preset duration as 30 seconds, second preset duration is exemplified by 6 minutes, during implementation, as long as user Do not leave Website page, browser is just at interval of 30 seconds by after the holding time and extend to current time of automated log on kinetic energy 6 minutes.After user leaves Website page, that is, stop updating holding time for Auto Login feature.
In this way, after user leaves Website page, accessing the website again in 6 minutes, can directly accessing the website Every resource, namely, it is possible to achieve automated log on.
Alternatively, holding time for Auto Login feature is extended at interval of the first preset duration in the step S103 After current time the step of the second preset duration, it can be realized by following steps.
The effective time of second cookie information is adjusted to current time at interval of the first preset duration Two preset durations.
Using the first preset duration as 30 seconds, the second preset duration is that in the present embodiment, above-mentioned steps can exemplified by 6 minutes To be realized by code below.
Wherein, LU_UTILS.setCookie () can be realized by code below.
In this way, real by need to only call LU_UTILS.autologin that the present invention can be achieved in the html file of website The automatic logging method of example offer is provided.
In the present embodiment, when the user login information stored in browser is expired, Auto Login feature will be unable to reality It is existing.Therefore, in the case where not being changed in itself to Auto Login feature, by the effective time of user login information adjust to The second preset duration that user is exited after Website page, you can Auto Login feature is extended into user and exited after Website page Two preset durations.Based on the reason for periodically extending Auto Login feature in foregoing description, because user exits the time of website It is uncertain, it is then desired to periodically adjust the effective time of user login information.
It should be noted that based on automatic logging method provided in an embodiment of the present invention, when user is cancelling automated log on In the case of option behind Successful login website, the Website page, and the second preset duration after the Website page is exited are exited again The website is inside accessed again, it is possible to achieve automated log on.In this situation, user, which remains in, cancels automated log on option State.Thus, after automated log on, browser can still extend to Auto Login feature currently at interval of the first preset duration Second preset duration after moment.
After user is in Successful login website in the case of cancelling automated log on option, the Website page is exited again, and Exit after the second preset duration after the Website page and access the website again, then rest on the login interface, it is necessary to Family carries out register manually.
Referring to Fig. 8, present pre-ferred embodiments also provide a kind of automatic login device 110, applied to user terminal 100, the user terminal 100 includes login interface, and the login interface is provided with automated log on option.The automated log on dress Putting 110 includes automated log on detection module 111, user login information detection module 112 and time delay module 113.
Wherein, the automated log on detection module 111 is used for when logining successfully every time, judges that the automatic of login interface steps on Whether record option is cancelled.In the present embodiment, the description as described in the automated log on detection module 111 is specifically referred to figure The detailed description of step S101 shown in 3, that is, the step S101 can be performed by the automated log on detection module 111.
The user login information detection module 112 is used for when the automated log on option is cancelled, and detects described use Whether be stored with user login information in family terminal 100.In the present embodiment, on the user login information detection module 112 description specifically refers to the detailed description to step S102 shown in Fig. 3, that is, the step S102 can be by described User login information detection module 112 is performed.
The time delay module 113 be used for be stored with the user terminal 100 user login information when, at interval of first Preset duration by Auto Login feature hold time extend to current time after the second preset duration.
Wherein, first preset duration is less than second preset duration.In the present embodiment, on the delay mould The description of block 113 specifically refers to the detailed description to step S103 shown in Fig. 3, that is, the time delay module 113 can be by The step S103 is performed.
Alternatively, in the present embodiment, the time delay module 113 at interval of the first preset duration by Auto Login feature The mode of the second preset duration after extending to current time of holding time can include:
The effective time of second cookie information is adjusted to current time at interval of the first preset duration Two preset durations.
Description specifically refer to the detailed description in the above to correlation step as described in above-mentioned steps.
Alternatively, referring to Fig. 9, the automated log on detection module 111, which can include pagefile, asks submodule 1111 and automated log on detection sub-module 1112.
Wherein, the pagefile request submodule 1111 is used for the pagefile of the request target page, the page text Part includes log-on message processing script.In the present embodiment, the description tool as described in pagefile request submodule 1111 Body refers to the detailed description to step S201 shown in Fig. 5, that is, the step S201 can be asked by the pagefile Submodule 1111 is performed.
The automated log on detection sub-module 1112 is used for when logining successfully every time, performs the log-on message processing pin This, judges whether the automated log on option of login interface is cancelled.In the present embodiment, submodule is detected on the automated log on The description of block 1112 specifically refers to the detailed description to step S202 shown in Fig. 5, that is, the step S202 can be by institute Automated log on detection sub-module 1112 is stated to perform.
Alternatively, be stored with the first cookie information in the user terminal 100, and first cookie information includes Automated log on flag bit, as shown in Figure 10, the automated log on detection sub-module 1112 can be obtained including automated log on flag bit Take unit 301 and judging unit 302.
Wherein, the automated log on flag bit acquiring unit 301 is used to obtain automatic from first cookie information Log in flag bit.In the present embodiment, the description as described in the automated log on flag bit acquiring unit 301 is specifically referred to right The detailed description of step S301 shown in Fig. 6, that is, the step S301 can be by the automated log on flag bit acquiring unit 301 perform.
The judging unit 302 is used to judge that the automated log on of login interface is selected according to the value of the automated log on flag bit Whether item is cancelled.In the present embodiment, the description as described in the judging unit 302 is specifically referred to step as shown in Fig. 6 S302 detailed description, that is, the step S302 can be performed by the judging unit 302.
Alternatively, as shown in figure 11, the user login information detection module 112 can include the 2nd cookie detection Module 1121 and user login information judging submodule 1122.
The 2nd cookie detection sub-modules 1121 are used for when the automated log on option is cancelled, and detect described use Whether it is stored with family terminal 100 for the second cookie information for recording user login information.In the present embodiment, on institute The description for stating the 2nd cookie detection sub-modules 1121 specifically refers to the detailed description of step S401 in Fig. 7, that is, step S401 can be performed by the 2nd cookie detection sub-modules 1121.
The user login information judging submodule 1122 is used for the presence of the 2nd cookie letters in the user terminal 100 During breath, the user login information that is stored with the user terminal 100 is judged.In the present embodiment, believe on the User logs in The description of breath judging submodule 1122 specifically refers to the detailed description to step S402 and step S403 in Fig. 7, that is, described Step S402 and step S403 can be performed by the user login information judging submodule 1122.
In summary, automatic logging method and device provided in an embodiment of the present invention, when logining successfully every time, judge to use Whether family cancels the automated log on option of login interface, after the automated log on option of user's cancellation login interface is detected, inspection The user login information that whether is stored with user terminal 100 is surveyed, be stored with user login information in user terminal 100 is detected When, periodically by Auto Login feature hold time extend to current time after the second preset duration.In this way, working as user When being again introduced into after exiting in the second preset duration, can direct automated log on, logged in without manually operated.This design Meet the use habit of user, significantly improve Consumer's Experience.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (10)

1. a kind of automatic logging method, it is characterised in that applied to user terminal, the user terminal includes login interface, institute State login interface and be provided with automated log on option, methods described includes:
When logining successfully every time, judge whether the automated log on option of login interface is cancelled;
When the automated log on option is cancelled, the user login information that whether is stored with the user terminal is detected;
Be stored with the user terminal user login information when, at interval of the first preset duration by the dimension of Auto Login feature The second preset duration after time lengthening to current time is held, first preset duration is less than second preset duration.
2. automatic logging method according to claim 1, it is characterised in that when logining successfully every time, judges to log in boundary The step of whether the automated log on option in face is cancelled, including:
The pagefile of the request target page, the pagefile includes log-on message processing script;
When logining successfully every time, perform log-on message processing script, judge login interface automated log on option whether It is cancelled.
3. automatic logging method according to claim 1, it is characterised in that be stored with first in the user terminal Cookie information, first cookie information includes automated log on flag bit;Judge the automated log on option of login interface The step of whether being cancelled, including:
Automated log on flag bit is obtained from first cookie information;
Whether the automated log on option for judging login interface according to the value of the automated log on flag bit is cancelled.
4. automatic logging method according to claim 1, it is characterised in that when the automated log on option is cancelled, The step of user login information whether is stored with the user terminal is detected, including:
When the automated log on option is cancelled, detect whether be stored with the user terminal for recording User logs in letter Second cookie information of breath;
When there is the second cookie information in the user terminal, the User logs in letter that is stored with the user terminal is judged Breath.
5. automatic logging method according to claim 4, it is characterised in that at interval of the first preset duration by automated log on After the holding time of function extends to current time the step of the second preset duration, including:
The effective time of second cookie information adjusted to current time second at interval of the first preset duration pre- If duration.
6. a kind of automatic login device, it is characterised in that applied to user terminal, the user terminal includes login interface, institute State login interface and be provided with automated log on option, described device includes:
Automated log on detection module, for when logining successfully every time, judging whether the automated log on option of login interface is taken Disappear;
User login information detection module, for when the automated log on option is cancelled, detecting in the user terminal to be The no user login information that is stored with;
Time delay module, for be stored with the user terminal user login information when, at interval of the first preset duration incite somebody to action from Second preset duration after the holding time of dynamic login feature extends to current time, first preset duration is less than described the Two preset durations.
7. automatic login device according to claim 6, it is characterised in that the automated log on detection module includes:
Pagefile asks submodule, and for the pagefile of the request target page, the pagefile includes log-on message Handle script;
Automated log on detection sub-module, for when logining successfully every time, performing the log-on message processing script, judges to log in Whether the automated log on option at interface is cancelled.
8. automatic login device according to claim 6, it is characterised in that be stored with first in the user terminal Cookie information, first cookie information includes automated log on flag bit;The automated log on detection sub-module includes:
Automated log on flag bit acquiring unit, for obtaining automated log on flag bit from first cookie information;
Judging unit, for judging whether the automated log on option of login interface is taken according to the value of the automated log on flag bit Disappear.
9. automatic login device according to claim 6, it is characterised in that the user login information detection module bag Include:
2nd cookie detection sub-modules, for when the automated log on option is cancelled, detecting in the user terminal to be It is no to be stored with for the second cookie information for recording user login information;
User login information judging submodule, during for there is the second cookie information in the user terminal, judges described Be stored with user login information in user terminal.
10. automatic login device according to claim 9, it is characterised in that the time delay module is default at interval of first Duration by Auto Login feature hold time extend to current time after the second preset duration mode, including:
The effective time of second cookie information adjusted to current time second at interval of the first preset duration pre- If duration.
CN201710299061.6A 2017-04-27 2017-04-27 Automatic login method and device Active CN106982226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710299061.6A CN106982226B (en) 2017-04-27 2017-04-27 Automatic login method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710299061.6A CN106982226B (en) 2017-04-27 2017-04-27 Automatic login method and device

Publications (2)

Publication Number Publication Date
CN106982226A true CN106982226A (en) 2017-07-25
CN106982226B CN106982226B (en) 2020-08-14

Family

ID=59343308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710299061.6A Active CN106982226B (en) 2017-04-27 2017-04-27 Automatic login method and device

Country Status (1)

Country Link
CN (1) CN106982226B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045913A (en) * 2018-10-11 2020-04-21 福建天泉教育科技有限公司 Method and terminal for automatically logging in to-be-tested application

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1582437A (en) * 2001-11-01 2005-02-16 雅虎公司 Method and system of facilitating automatic login to a web site using an internet browser
CN103368964A (en) * 2013-07-18 2013-10-23 北京京东尚科信息技术有限公司 Cookie dynamic loading method
US20150081381A1 (en) * 2013-09-19 2015-03-19 Chukwudumebi OKOBA System and method for recording time
CN105162805A (en) * 2015-09-30 2015-12-16 北京奇虎科技有限公司 User account login method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1582437A (en) * 2001-11-01 2005-02-16 雅虎公司 Method and system of facilitating automatic login to a web site using an internet browser
CN103368964A (en) * 2013-07-18 2013-10-23 北京京东尚科信息技术有限公司 Cookie dynamic loading method
US20150081381A1 (en) * 2013-09-19 2015-03-19 Chukwudumebi OKOBA System and method for recording time
CN105162805A (en) * 2015-09-30 2015-12-16 北京奇虎科技有限公司 User account login method and apparatus

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
网友: ""关于Cookie登录的时间问题"", 《HTTPS://BBS.CSDN.NET/TOPICS/330092709》 *
网友: ""没勾选"记住密码",关闭浏览器后再打开却能自动登录"", 《HTTPS://WWW.DISCUZ.NET/FORUM.PHP?MOD=VIEWTHREAD&TID=1923862&EXTRA=&HIGHLIGHT=&PAGE=1》 *
网友: ""没勾选自动登录,但为什么只要不点退出,永远都是登陆状态"", 《HTTPS://WWW.DISCUZ.NET/THREAD-2636029-1-1.HTML》 *
网友: ""采用Asp.Net的Forms身份验证时,非持久Cookie的过期时间会自动扩展"", 《HTTPS://WWW.CNBLOGS.COM/ZHWL/P/3835769.HTML》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045913A (en) * 2018-10-11 2020-04-21 福建天泉教育科技有限公司 Method and terminal for automatically logging in to-be-tested application
CN111045913B (en) * 2018-10-11 2023-07-07 福建天泉教育科技有限公司 Method and terminal for automatically logging in application to be tested

Also Published As

Publication number Publication date
CN106982226B (en) 2020-08-14

Similar Documents

Publication Publication Date Title
CN107256195B (en) Webpage front-end test method and device
US9584504B2 (en) Auto login method and device
US9684777B2 (en) Identity authentication method of an internet account, identity authentication device of an internet account and server
TWI550533B (en) Method and apparatus for secure payment by electronic terminal
CN103634301B (en) The method of the private data of user's storage in client and access server thereof
CN108696490A (en) The recognition methods of account permission and device
CN109688280A (en) Request processing method, request processing equipment, browser and storage medium
CN104967586B (en) A kind of user ID authentication method, apparatus and system
US11455365B2 (en) Data processing method and apparatus
CN111770086B (en) Fishing user simulation collection method, device, system and computer readable storage medium
CA2949890A1 (en) Semi-automated form-based chat
CN106406851A (en) Webpage image capture method and system
CN101273331A (en) Method of controlling a browser window
US9285964B2 (en) Automatically recovering and maintaining focus
CN108335191B (en) Financial account opening method, financial service system terminal and computer storage medium
CN104426960B (en) A kind of trial method and device of payment applications
CN105512254A (en) Terminal, webpage information preloading method and system
CN103647775B (en) Method and apparatus for registration in webpage
CN108668241A (en) Information prompting method, device, storage medium and electronic equipment
CN106254328A (en) A kind of access control method and device
CN106982226A (en) Automatic logging method and device
CN103209414B (en) A kind of method, device and mobile terminal of controlling web page access
US20160036853A1 (en) Storage medium storing program for login alerts, and method and system thereof
CN107979577A (en) A kind of method and apparatus of terminal authentication
CN105959344B (en) web pushing method and device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20181015

Address after: 610000 No. 1, 24 floor, 1 1 Tianfu street, Chengdu high tech Zone, Sichuan

Applicant after: Chengdu anyxun Technology Co., Ltd.

Address before: 610000 No. 2, No. 5, Tianfu four street, 66 High-tech Zone, Chengdu, Sichuan.

Applicant before: CHENGDU QILU TECHNOLOGY CO., LTD.

GR01 Patent grant
GR01 Patent grant