CN104580380B - The synchronous method and system of logging state - Google Patents

The synchronous method and system of logging state Download PDF

Info

Publication number
CN104580380B
CN104580380B CN201410778650.9A CN201410778650A CN104580380B CN 104580380 B CN104580380 B CN 104580380B CN 201410778650 A CN201410778650 A CN 201410778650A CN 104580380 B CN104580380 B CN 104580380B
Authority
CN
China
Prior art keywords
application program
native application
web page
login sessions
sessions 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.)
Active
Application number
CN201410778650.9A
Other languages
Chinese (zh)
Other versions
CN104580380A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201410778650.9A priority Critical patent/CN104580380B/en
Publication of CN104580380A publication Critical patent/CN104580380A/en
Application granted granted Critical
Publication of CN104580380B publication Critical patent/CN104580380B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Abstract

The present invention proposes the synchronous method and system of a kind of logging state, wherein the synchronous method of the logging state, comprising the following steps: load Web page, wherein Web page has trigger module;Whether detection user completes to log in Web page;Login is completed in Web page if detecting user, the login sessions data of user are sent to by default local network port by trigger module;First Native application program obtains login sessions data from default local network port;And the first Native application program login sessions data are sent to the 2nd Native application program so that the 2nd Native application program is completed to log according to login sessions data.The synchronous method and system of logging state of the invention, the logging state of page end is realized into Native application program, primary login is completed in the webpage that user need to only load in the terminal, can synchronize logging state in Native application program in the mobile terminal.

Description

The synchronous method and system of logging state
Technical field
The present invention relates to Internet technical field, in particular to the synchronous method and system of a kind of logging state.
Background technique
For most of internet development companies, the application product that each company is developed mainly has Web App (base In the application program of Web technology) and Native App (application program based on local (operating system) operation) two kinds of version.Mesh Before, the synchronization of logging state, a variety of application products may be implemented between a variety of application product Web App versions of same company Native App version between be also possible to realize synchronize.
But user, when using application, possible some application products use Web App version, and in addition Some application products use Native App version, and therefore, it is necessary to one kind can be between Web App and Native App Realize the technology of the synchronization of logging state.Currently, the Native App of load Web page can be by monitoring in the Native App Webview in the variations of feature cookie values the logging state of Web page be synchronized to load the Web page Logging state still cannot be but synchronized to other Native App by Native App.Moreover, this scheme is only applicable to pair The logging state of the Web page loaded in Native App is synchronous, for the login of the Web page loaded in non-Native App State can not then synchronize, therefore, it is difficult to which the logging state of Web page is synchronized to Native App version, and need user's weight New input log-on message is logged in, cumbersome, inconvenient, poor user experience.
Summary of the invention
The present invention is directed to solve above-mentioned technical problem at least to a certain extent.
For this purpose, the first purpose of this invention is to propose a kind of synchronous method of logging state, page end is realized Logging state completes primary login into Native application program, in the webpage that user need to only load in the terminal, at this Logging state can be synchronized in mobile terminal in Native application program.
Second object of the present invention is to propose a kind of synchronization system of logging state.
In order to achieve the above object, embodiment proposes a kind of synchronous method of logging state according to a first aspect of the present invention, add Carry Web page, wherein the Web page has trigger module;Whether detection user completes to log in the Web page;If It detects the user and login is completed in the Web page, then pass through the trigger module for the login sessions number of the user According to being sent to default local network port;First Native application program obtains the login from the default local network port Session data;And the login sessions data are sent to the 2nd Native and applied by the first Native application program Program, so that the 2nd Native application program is completed to log according to the login sessions data.
The synchronous method of the logging state of the embodiment of the present invention, can detect user, whether king is complete in the Web page loaded At login, and when completing to log in, the login sessions data of user are sent to by the trigger module in Web page and preset this The ground network port so that the first Native application program can obtain login sessions data from default local network port, and will be stepped on Record session data is sent to the 2nd Native application program, so that the 2nd Native application program is completed according to login sessions data It logs in, hereby it is achieved that the logging state of page end is into Native application program, what user need to only load in the terminal Primary login is completed in webpage, can synchronize logging state in Native application program in the mobile terminal.
Second aspect of the present invention embodiment proposes a kind of synchronization system of logging state, comprising: mobile terminal, the shifting Whether dynamic terminal detects user and completes to log in the Web page for loading Web page, wherein the Web page mask There is trigger module, login is completed in the Web page if detecting the user, by the trigger module by the use The login sessions data at family are sent to default local network port;First Native application program, the first Native application Program is used to obtain the login sessions data from the default local network port, and sends the login sessions data;With And the 2nd Native application program, the 2nd Native application program is for receiving the login sessions data, and according to institute Login sessions data are stated to complete to log in.
The synchronization system of the logging state of the embodiment of the present invention, can detect user, whether king is complete in the Web page loaded At login, and when completing to log in, the login sessions data of user are sent to by the trigger module in Web page and preset this The ground network port so that the first Native application program can obtain login sessions data from default local network port, and will be stepped on Record session data is sent to the 2nd Native application program, so that the 2nd Native application program is completed according to login sessions data It logs in, hereby it is achieved that the logging state of page end is into Native application program, what user need to only load in the terminal Primary login is completed in webpage, can synchronize logging state in Native application program in the mobile terminal.
Additional aspect and advantage of the invention will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect of the invention and advantage will become from the description of the embodiment in conjunction with the following figures Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow chart according to the synchronous method of the logging state of one embodiment of the invention;
Fig. 2 is the flow chart according to the synchronous method of the logging state of another embodiment of the present invention;
Fig. 3 is the flow chart according to the synchronous method of the logging state of a specific embodiment of the invention;
Fig. 4 is the structural schematic diagram according to the synchronization system of the logging state of one embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.
In the description of the present invention, it is to be understood that, term " multiple " refers to two or more;Term " first ", " second " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
Below with reference to the accompanying drawings the synchronous method and system of logging state according to an embodiment of the present invention are described.
In order to realize that the logging state by the end Web App is synchronized to Native App version, the invention proposes one kind to step on The synchronous method of record state, comprising the following steps: load Web page, wherein Web page has trigger module;Detection user exists Whether Web page, which is completed, logs in;Login is completed in Web page if detecting user, passes through trigger module stepping on user Record session data is sent to default local network port;First Native application program is obtained from default local network port and is logged in Session data;And the first Native application program login sessions data are sent to the 2nd Native application program so that Two Native application programs are completed to log according to login sessions data.
Fig. 1 is the flow chart according to the synchronous method of the logging state of one embodiment of the invention.As shown in Figure 1, according to The synchronous method of the logging state of the embodiment of the present invention, comprising:
S101 loads Web page, wherein Web page has trigger module.
In an embodiment of the present invention, Web page can be loaded in any application program that can load Web page. For example, Web page can be loaded by application programs such as mobile phone browser, QQ.Wherein, Web page have trigger mode, block, Trigger module can be JS (Javascript, one kind is based on object and event driven client-side scripting language) module.Triggering Module be used for when detect user Web page complete log in when, the login sessions data of user are sent to default local network Network port.
Whether S102, detection user complete to log in Web page.
S103 passes through trigger module for the login sessions number of user if login is completed in Web page in detection user According to being sent to default local network port.
Specifically, in one embodiment of the invention, can by trigger module by login sessions data with (Http Hypertext transfer protocol, hypertext transfer protocol) request mode occur to default local network port.
Wherein, login sessions data may include session id (Identity, Identity Code) and account information etc..
S104, the first Native application program obtain login sessions data from default local network port.
In one embodiment of the invention, the first Native application program can be listened to by built-in Http server Default local network port is stated to obtain login sessions data received by the default local network port.
Specifically, after the first Native application program launching, wherein built-in Http server can be initialized, and pass through The built-in Http server listens to the default local network port, to prepare to receive any application journey for being loaded with Web page What sequence was sent requests comprising login sessions data Http.
Wherein, the application program for loading Web page can be the first Native application program, be also possible to the first Native The other applications that application program is run in the terminal.
Login sessions data are sent to the 2nd Native application program by S105, the first Native application program, so that the Two Native application programs are completed to log according to login sessions data.
In an embodiment of the present invention, the first Native application program can be passed through wide by wherein built-in Http server It broadcasts or special interface that the mode of carousel is realized to the 2nd Native application program sends request.Wherein, Http server It include login sessions data in transmitted request.To which the 2nd Native application program can receive login sessions request, and It can be requested to complete to log according to the login sessions.
It should be appreciated that in an embodiment of the present invention, the first Native application program and the 2nd Native application program can To be the same application program, it is also possible to different application programs.
The synchronous method of the logging state of the embodiment of the present invention, can detect user, whether king is complete in the Web page loaded At login, and when completing to log in, the login sessions data of user are sent to by the trigger module in Web page and preset this The ground network port so that the first Native application program can obtain login sessions data from default local network port, and will be stepped on Record session data is sent to the 2nd Native application program, so that the 2nd Native application program is completed according to login sessions data It logs in, hereby it is achieved that the logging state of page end is into Native application program, what user need to only load in the terminal Primary login is completed in webpage, logging state can be synchronized in Native application program in the mobile terminal, without again Login sessions data are inputted, it is more convenient, the repetitive operation of user is greatly reduced, the user experience is improved.
Optionally, in one embodiment of the invention, login sessions data are sent in the first Native application program To before the 2nd Native application program, it may also include that the first Native application program obtains corresponding with Web page second The step of Native application program.Specifically, identification information (the packet name of such as application program, A.L.S. of application program can be passed through Breath etc.) obtain the 2nd Native application program corresponding with Web page.That is, when the Web page is by the 2nd Native When application program loads, login sessions data are sent to the Native for loading the Web page in the first Native application program Application program, so as to which the logging state at the end Web to be synchronized in the application program for loading the Web page, again without user It is secondary to log in the application, reduce the operation of user.
Further, in another embodiment of the present invention, the 2nd Native application program belongs to preset using journey Sequence list list, Native application program of the first Native application program into the single-row table of preset application name are sent Login sessions data.Wherein, the single-row table of the application name is generated previously according to some rules.For example, using journey Application program in sequence list list can be the application program of same Internet company or same developer exploitation or publication. To which login sessions data can be sent to multiple Native according to the single-row table of the application name by the first Native application program Application program, so that multiple Native application programs can be according to the login sessions data entry, so that it is manual to remove user from The operation of login, greatly reduces the operation of user, further improves the usage experience of user.
Fig. 2 is the flow chart according to the synchronous method of the logging state of another embodiment of the present invention.
Fig. 3 is the flow chart according to the synchronous method of the logging state of a specific embodiment of the invention.
As shown in Figures 2 and 3, the synchronous method of the logging state, comprising the following steps:
S201 loads Web page, wherein Web page has trigger module.
In an embodiment of the present invention, Web page can be loaded in any application program that can load Web page (right Answer S1 in Fig. 3).For example, Web page can be loaded by application programs such as mobile phone browser, QQ.Wherein, Web page has Trigger mode, block, trigger module can be JS (Javascript, one kind is based on object and event driven client-side scripting language) Module.Trigger module be used for when detect user Web page complete log in when, the login sessions data of user are sent to pre- If local network port
Whether S202, detection user complete to log in Web page.
S203 passes through trigger module for the login sessions number of user if login is completed in Web page in detection user According to being sent to default local network port.
Specifically, in one embodiment of the invention, trigger module can be by login sessions data with (Http Hypertext transfer protocol, hypertext transfer protocol) request mode occur to default local network port.
Wherein, login sessions data may include session id (Identity, Identity Code) and account information etc..
S2 in step S202 and S203 corresponding diagram 3.
S204, the first Native application program obtain login sessions data from default local network port.
In one embodiment of the invention, the first Native application program can be listened to by built-in Http server Default local network port is stated to obtain login sessions data received by the default local network port.
Specifically, after the first Native application program launching, wherein built-in Http server can be initialized, and pass through The built-in Http server listens to the default local network port, to prepare to receive any application journey for being loaded with Web page Sequence send comprising login sessions data Http request (S3 and S4 in corresponding diagram 3, wherein the first Native application program is corresponding Native application program A).
Wherein, the application program for loading Web page can be the first Native application program, be also possible to Native application The other applications that program is run in the terminal.
Login sessions data are sent to the 2nd Native application program by S205, the first Native application program.
In an embodiment of the present invention, the first Native application program can be passed through wide by wherein built-in Http server It broadcasts or special interface that the mode of carousel is realized to the 2nd Native application program sends request.Wherein, Http server It include login sessions data in transmitted request.To which the 2nd Native application program can receive login sessions request, and It can be requested to complete to log according to the login sessions.
It should be appreciated that in an embodiment of the present invention, the first Native application program and the 2nd Native application program can To be the same application program, it is also possible to different application programs.
Wherein, the 2nd Native application program can be application program corresponding with above-mentioned Web page, be also possible to preset The single-row table of application name in Native application program (S5 in corresponding diagram 3).The single-row table of the application name is preparatory root It is generated according to some rules.For example, the application program in the single-row table of application name can be same Internet company or The application program of the same developer's exploitation of person or publication.The Web is loaded to can not only be synchronized to the logging state at the end Web The application program of the page can also be synchronized to other multiple Native application programs, to remove the operation of user's manual entry from, greatly The operation for reducing user greatly, further improves the usage experience of user.
S206, the 2nd Native application program obtain the identification information of the first Native application program.
Wherein, the identification information of application program may include the packet name of application program, packet signature information etc..
Specifically, the interface that the 2nd Native application program can be provided by the operating system of mobile terminal obtains first The identification information of Native application program.
S207, the 2nd Native application program carry out legitimacy verifies according to identification information.
In one embodiment of the invention, the 2nd Native application program can be arranged by preset application program white list Table and the identification information carry out legitimacy verifies.Specifically, the 2nd Native application program can determine that the first Native application journey Whether the identification information of sequence belongs to preset application program white list, if belonged to, the first Native application program is logical Legitimacy verifies are crossed, otherwise, the first Native application program does not pass through legitimacy verifies.
Wherein, the white list of file names of the application program pre-establishes, the mark including being rated as valid application program Know information list.The evaluation result of application program can be provided by authoritative third party, or pass through the evaluation result to a large number of users Acquisition for statistical analysis can also obtain, the present invention is not listed one by one by other means certainly.
S208, if the 2nd Native application program is completed to log according to login sessions data by legitimacy verifies.
S6-S8 in step S206-S208 corresponding diagram 3.
The synchronous method of the logging state of the embodiment of the present invention, the 2nd Native application program are receiving login sessions number According to later, can further obtain the identification information for sending the first Native application program of the login sessions data, and according to this Identification information carries out legitimacy verifies to the first Native application program, and according to the login sessions after through legitimacy verifies Data are completed to log in, and thus after the source of verification login sessions data is legal, are just logged in, can prevent from not conforming to because using The login sessions data of method logged in and caused by user information leakage, economic loss etc., it is convenient, simplify user's operation Meanwhile the safety of user account and other information, assets is improved, further the user experience is improved.
In order to realize above-described embodiment, the present invention also proposes a kind of synchronization system of logging state.
A kind of synchronization system of logging state, comprising: mobile terminal, mobile terminal detect use for loading Web page Whether complete to log in Web page in family, wherein Web page has trigger module, if detection user is completed in Web page It logs in, then the login sessions data of user is sent to by default local network port by trigger module;First Native application Program, the first Native application program is used to obtain login sessions data from default local network port, and sends login sessions Data;And the 2nd Native application program, the 2nd Native application program is for receiving login sessions data, and according to login Session data is completed to log in.
Fig. 4 is the structural schematic diagram according to the synchronization system of the logging state of one embodiment of the invention.
As shown in figure 4, according to the system in the embodiment of the present invention, comprising: mobile terminal 10, the first Native application program 20 With the 2nd Native application program 30.
Specifically, 10 mobile terminal of mobile terminal is for loading Web page, and detects whether user completes in Web page It logs in, wherein Web page has trigger module, if login is completed in Web page in detection user, passes through trigger module The login sessions data of user are sent to default local network port.
In an embodiment of the present invention, mobile terminal 10 can load in any application program that can load Web page Web page.For example, mobile terminal 10 can load Web page by application programs such as mobile phone browser, QQ.Wherein, Web The page has trigger mode, block, and trigger module can be JS, and (Javascript, one kind being based on object and event driven client Scripting language) module.Trigger module is used for when detecting user when Web page is completed to log in, by the login sessions number of user According to being sent to default local network port.
More specifically, in one embodiment of the invention, if mobile terminal 10 detects user and is completed in Web page Log in, then can by trigger module by login sessions data with (Http Hypertext transfer protocol, hypertext Transport protocol) request mode occur to default local network port.
Wherein, login sessions data may include session id (Identity, Identity Code) and account information etc..
First Native application program 20 is used to obtain login sessions data from default local network port, and sends login Session data.
2nd Native application program 30 is completed to log in for receiving login sessions data, and according to login sessions data.
In one embodiment of the invention, the first Native application program 20 can be listened to by built-in Http server Above-mentioned default local network port is to obtain login sessions data received by the default local network port.
More specifically, wherein built-in Http server can be initialized after the starting of the first Native application program 20, and The default local network port is listened to by the built-in Http server, reception is any to be loaded with answering for Web page to prepare It is requested with what program was sent comprising login sessions data Http.
Wherein, the application program for loading Web page can be the first Native application program 20, be also possible to first The other applications that Native application program 20 is run in the terminal.
In an embodiment of the present invention, the first Native application program 20 can be passed through by wherein built-in Http server The special interface that the mode of broadcast or carousel is realized to the 2nd Native application program 30 sends request.Wherein, Http takes It is engaged in including login sessions data in request transmitted by device.It is asked to which the 2nd Native application program 30 can receive login sessions It asks, and can be requested to complete to log according to the login sessions.
It should be appreciated that in an embodiment of the present invention, the first Native application program and the 2nd Native application program can To be the same application program, it is also possible to different application programs.
The synchronization system of the logging state of the embodiment of the present invention, can detect user, whether king is complete in the Web page loaded At login, and when completing to log in, the login sessions data of user are sent to by the trigger module in Web page and preset this The ground network port so that the first Native application program can obtain login sessions data from default local network port, and will be stepped on Record session data is sent to the 2nd Native application program, so that the 2nd Native application program is completed according to login sessions data It logs in, hereby it is achieved that the logging state of page end is into Native application program, what user need to only load in the terminal Primary login is completed in webpage, can synchronize logging state in Native application program in the mobile terminal.
Optionally, in one embodiment of the invention, the first Native application program is also used to sending login sessions Before data, the 2nd Native application program corresponding with Web page is obtained.Specifically, can be believed by the mark of application program It ceases (the packet name of such as application program, signing messages) and obtains the 2nd Native application program corresponding with Web page.Namely It says, when the Web page is loaded by the 2nd Native application program, in the first Native application program by login sessions data It is sent to the Native application program for loading the Web page, loads the Web so as to which the logging state at the end Web to be synchronized to In the application program of the page, is logged in the application again without user, reduce the operation of user.
Further, in another embodiment of the present invention, the 2nd Native application program belongs to preset using journey Sequence list list, Native application program of the first Native application program into the single-row table of preset application name are sent Login sessions data.Wherein, the single-row table of the application name is generated previously according to some rules.For example, using journey Application program in sequence list list can be the application program of same Internet company or same developer exploitation or publication. To which login sessions data can be sent to multiple Native according to the single-row table of the application name by the first Native application program Application program, so that multiple Native application programs can be according to the login sessions data entry, so that it is manual to remove user from The operation of login, greatly reduces the operation of user, further improves the usage experience of user.
In another embodiment of the present invention, the 2nd Native application program is also used in the first Native application program After sending login sessions data, the identification information of the first Native application program is obtained, and legal according to identification information progress Property verification, if completing to log according to login sessions data by legitimacy verifies.
Wherein, the identification information of application program may include the packet name of application program, packet signature information etc..
Specifically, the interface that the 2nd Native application program can be provided by the operating system of mobile terminal obtains first The identification information of Native application program.
In one embodiment of the invention, the 2nd Native application program can be arranged by preset application program white list Table and the identification information carry out legitimacy verifies.Specifically, the 2nd Native application program can determine that the first Native application journey Whether the identification information of sequence belongs to preset application program white list, if belonged to, the first Native application program is logical Legitimacy verifies are crossed, otherwise, the first Native application program does not pass through legitimacy verifies.
Wherein, the white list of file names of the application program pre-establishes, the mark including being rated as valid application program Know information list.The evaluation result of application program can be provided by authoritative third party, or pass through the evaluation result to a large number of users Acquisition for statistical analysis can also obtain, the present invention is not listed one by one by other means certainly.
The 2nd Native application program is after receiving login sessions data as a result, and can further obtaining transmission, this is stepped on The identification information of the first Native application program of session data is recorded, and according to the identification information to the first Native application program Legitimacy verifies are carried out, and complete to log according to the login sessions data after through legitimacy verifies, are thus logged in verification It after the source of session data is legal, is just logged in, can be prevented due to using illegal login sessions data to be logged in Caused by user information leakage, economic loss etc., it is convenient, simplify user's operation while, improve user account and other The safety of information, assets, further the user experience is improved.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that: not A variety of change, modification, replacement and modification can be carried out to these embodiments in the case where being detached from the principle of the present invention and objective, this The range of invention is by claim and its equivalent limits.

Claims (12)

1. a kind of synchronous method of logging state, which comprises the following steps:
Load Web page, wherein the Web page has trigger module;
Whether detection user completes to log in the Web page;
Login is completed in the Web page if detecting the user, passes through the trigger module stepping on the user Record session data is sent to default local network port;
First Native application program obtains the login sessions data from the default local network port;And
The login sessions data are sent to the 2nd Native application program by the first Native application program, so that described 2nd Native application program is completed to log according to the login sessions data;Wherein, the application program of the Web page is loaded For the first Native application program, alternatively, the first Native application program run in the terminal other Application program.
2. the synchronous method of logging state as described in claim 1, which is characterized in that in the first Native application program The login sessions data are sent to before the 2nd Native application program, further includes:
The first Native application program obtains the 2nd Native application program corresponding with the Web page.
3. the synchronous method of logging state as claimed in claim 2, which is characterized in that the 2nd Native application program category In the single-row table of preset application name, the first Native application program is into the preset single-row table of application name Native application program send the login sessions data.
4. the synchronous method of logging state as described in claim 1, which is characterized in that the login sessions data include session ID and account information.
5. the synchronous method of logging state as described in claim 1, which is characterized in that in the first Native application program The login sessions data are sent to after the 2nd Native application program, further includes:
The 2nd Native application program obtains the identification information of the first Native application program;
The 2nd Native application program carries out legitimacy verifies according to the identification information;
If the 2nd Native application program is stepped on according to login sessions data completion by the legitimacy verifies Record.
6. the synchronous method of logging state as described in claim 1, which is characterized in that the first Native application program and The 2nd Native application program belongs to the same application program.
7. a kind of synchronization system of logging state characterized by comprising
Whether mobile terminal, the mobile terminal detect user and complete to log in the Web page for loading Web page, Wherein, the Web page has trigger module, and login is completed in the Web page if detecting the user, passes through institute It states trigger module and the login sessions data of the user is sent to default local network port;
First Native application program, the first Native application program are used to obtain institute from the default local network port Login sessions data are stated, and send the login sessions data;And
2nd Native application program, the 2nd Native application program for receiving the login sessions data, and according to The login sessions data are completed to log in;Wherein, the application program for loading the Web page is the first Native application journey Sequence, alternatively, the other applications that the first Native application program is run in the terminal.
8. the synchronization system of logging state as claimed in claim 7, which is characterized in that
The first Native application program is also used to before sending the login sessions data, is obtained and the Web page The corresponding 2nd Native application program.
9. the synchronization system of logging state as claimed in claim 8, which is characterized in that the 2nd Native application program category In the single-row table of preset application name, the first Native application program is into the preset single-row table of application name Native application program send the login sessions data.
10. the synchronization system of logging state as claimed in claim 7, which is characterized in that the login sessions data include meeting Talk about ID and account information.
11. the synchronization system of logging state as claimed in claim 7, which is characterized in that
The 2nd Native application program is also used to send the login sessions data in the first Native application program Later, the identification information of the first Native application program is obtained, and legitimacy verifies are carried out according to the identification information, such as Fruit then completes to log in by the legitimacy verifies according to the login sessions data.
12. the synchronization system of logging state as claimed in claim 7, which is characterized in that the first Native application program Belong to the same application program with the 2nd Native application program.
CN201410778650.9A 2014-12-15 2014-12-15 The synchronous method and system of logging state Active CN104580380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410778650.9A CN104580380B (en) 2014-12-15 2014-12-15 The synchronous method and system of logging state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410778650.9A CN104580380B (en) 2014-12-15 2014-12-15 The synchronous method and system of logging state

Publications (2)

Publication Number Publication Date
CN104580380A CN104580380A (en) 2015-04-29
CN104580380B true CN104580380B (en) 2019-04-02

Family

ID=53095538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410778650.9A Active CN104580380B (en) 2014-12-15 2014-12-15 The synchronous method and system of logging state

Country Status (1)

Country Link
CN (1) CN104580380B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331042B (en) * 2015-07-01 2020-04-07 阿里巴巴集团控股有限公司 Single sign-on method and device for heterogeneous user system
CN105704650A (en) * 2016-01-20 2016-06-22 北京京东尚科信息技术有限公司 Synchronizing device and method
CN106066803B (en) * 2016-05-25 2019-12-13 北京奇虎科技有限公司 application program operation control method and device
CN109831416A (en) * 2018-12-27 2019-05-31 北京城市网邻信息技术有限公司 A kind of login method and device
CN109547480A (en) * 2018-12-27 2019-03-29 北京城市网邻信息技术有限公司 A kind of login method and device
CN113014448B (en) * 2021-02-23 2022-09-30 深信服科技股份有限公司 Login state rule extraction method and device and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504616B (en) * 2009-03-23 2011-08-10 金蝶软件(中国)有限公司 Method and apparatus for login of Windows application program through Web application
US9602851B2 (en) * 2011-03-01 2017-03-21 Sony Corporation Method and apparatus for switching between a native application and a second application
US8881250B2 (en) * 2011-06-17 2014-11-04 Ebay Inc. Passporting credentials between a mobile app and a web browser
CN103414824B (en) * 2013-08-14 2015-10-28 惠州Tcl移动通信有限公司 A kind of automatic login process method based on mobile terminal and system
CN103780627A (en) * 2014-01-30 2014-05-07 吴锦洲 Native APP, Web APP and Wechat-similar APP information synchronization system
CN104113534B (en) * 2014-07-02 2018-01-09 百度在线网络技术(北京)有限公司 The login system and method for application APP

Also Published As

Publication number Publication date
CN104580380A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104580380B (en) The synchronous method and system of logging state
CN103905497B (en) Realize the method, apparatus and application platform of third-party application business website log
CN104113534B (en) The login system and method for application APP
CN104468592B (en) Login method and login system
CN102655481B (en) A kind of instant messaging chat content inspection method based on webpage and system
CN104519050B (en) Login method and login system
CN108718337B (en) Website account login, verification and verification information processing method, device and system
CN104735066A (en) Single sign-on method, device and system oriented to web page applications
CN103139137B (en) Network service provider method and device
CN108965950A (en) A kind of monitoring of the advertisement method and apparatus
CN103618606A (en) App login method verified through short message
CN106649446B (en) Information pushing method and device
CN107426253B (en) Data verification method and client
CN104394133A (en) Login method and login system
US20150195181A1 (en) Testing of dynamic web content applications
CN101616166A (en) The method and apparatus that in the Internet, is used for the high-speed downloads content of multimedia
US11030661B2 (en) Opt-out enforcement for systems using non-cookie browser identification
CN104796408B (en) Login method is broadcast live in single-point and entering device is broadcast live in single-point
CN102724139A (en) Method and device for friend recommending through instant messaging
CN105872006A (en) Appointment reminding system and appointment reminding method
CN107508822A (en) Access control method and device
CN108124007A (en) The method and apparatus of message data real-time Transmission
CN105337841A (en) Information processing method and system, client, and server
JP2014132443A (en) Collection server and collection method
CN103856827A (en) Service simulation interaction-based video content obtaining method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant