CN104580380A - Synchronization method and system for logging status - Google Patents

Synchronization method and system for logging status Download PDF

Info

Publication number
CN104580380A
CN104580380A CN201410778650.9A CN201410778650A CN104580380A CN 104580380 A CN104580380 A CN 104580380A CN 201410778650 A CN201410778650 A CN 201410778650A CN 104580380 A CN104580380 A CN 104580380A
Authority
CN
China
Prior art keywords
application program
native application
login
web page
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.)
Granted
Application number
CN201410778650.9A
Other languages
Chinese (zh)
Other versions
CN104580380B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a synchronization method and system for a logging status, wherein the synchronization method for the logging status comprises the following steps: loading a Web page which has a trigger module; detecting whether a user completes logging in the Web page or not; if the user is detected to complete logging in the Web page, sending logging session data of the user to a preset local network port through a trigger module; obtaining the logging session data from the preset local network port through a first Native application program; sending the logging session data to a second Native application program through the first Native application program, so that the second Native application program completes logging according to the logging session data. According to the synchronization method and the synchronization system for the logging status disclosed by the invention, when the logging status of webpage terminal is sent into the Native application program, a user only needs to complete logging once in the webpage loaded in a mobile terminal, so that the logging status can be synchronized in the Native application program in the mobile terminal.

Description

The synchronous method of logging status and system
Technical field
The present invention relates to Internet technical field, particularly a kind of synchronous method of logging status and system.
Background technology
For most of the Internet development company, the application product that each company develops mainly contains Web App (application program of sing on web technology) and Native App (application program based on local (operating system) is run) two kinds of versions.At present, can realize the synchronous of logging status between the multiple application product Web App version of same company, also can be realize synchronously between the Native App version of multiple application product.
But, user is when use application, and more possible application products use Web App version, and other application product uses Native App version, therefore, a kind of synchronous technology that can realize logging status between Web App with Native App is needed.At present, the logging status of Web page is synchronized to by the change of monitoring the value of the feature cookie item in the Webview in this Native App the Native App loading this Web page by the Native App loading Web page, but, but logging status can not be synchronized to other Native App.And, this scheme is only applicable to the logging status of the Web page loaded in Native App synchronous, logging status for the Web page loaded in non-Native App then cannot be synchronous, thus, be difficult to the logging status of Web page to be synchronized to Native App version, and need user to re-enter log-on message to log in, complex operation, very inconvenient, poor user experience.
Summary of the invention
The present invention is intended to solve the problems of the technologies described above at least to a certain extent.
For this reason, first object of the present invention is the synchronous method proposing a kind of logging status, achieve the logging status of page end in Native application program, complete in the webpage that user only need load in the terminal and once log in, can synchronous logging status in Native application program in this mobile terminal.
Second object of the present invention is the synchro system proposing a kind of logging status.
For reaching above-mentioned purpose, embodiment proposes a kind of synchronous method of logging status according to a first aspect of the present invention, and load Web page, wherein, described Web page has trigger module; Detect user and whether complete login in described Web page; If detect described user complete login in described Web page, then by described trigger module, the login sessions data of described user are sent to default local network port; One Native application program obtains described login sessions data from described default local network port; And described login sessions data are sent to described 2nd Native application program by a described Native application program, complete login to make described 2nd Native application program according to described login sessions data.
The synchronous method of the logging status of the embodiment of the present invention, whether king completes login in the Web page loaded can to detect user, and when completing login, by the trigger module in Web page, the login sessions data of user are sent to default local network port, thus a Native application program can obtain login sessions data from default local network port, and login sessions data are sent to the 2nd Native application program, login is completed according to login sessions data to make the 2nd Native application program, thus, achieve the logging status of page end in Native application program, complete in the webpage that user only need load in the terminal and once log in, can synchronous logging status in Native application program in this mobile terminal.
Second aspect present invention embodiment proposes a kind of synchro system of logging status, comprise: mobile terminal, described mobile terminal is for loading Web page, and detect user and whether complete login in described Web page, wherein, described Web page has trigger module, if detect described user complete login in described Web page, then by described trigger module, the login sessions data of described user is sent to default local network port; One Native application program, a described Native application program is used for obtaining described login sessions data from described default local network port, and sends described login sessions data; And the 2nd Native application program, described 2nd Native application program for receiving described login sessions data, and completes login according to described login sessions data.
The synchro system of the logging status of the embodiment of the present invention, whether king completes login in the Web page loaded can to detect user, and when completing login, by the trigger module in Web page, the login sessions data of user are sent to default local network port, thus a Native application program can obtain login sessions data from default local network port, and login sessions data are sent to the 2nd Native application program, login is completed according to login sessions data to make the 2nd Native application program, thus, achieve the logging status of page end in Native application program, complete in the webpage that user only need load in the terminal and once log in, can synchronous logging status in Native application program in this mobile terminal.
Additional aspect of the present invention and advantage will part provide in the following description, and part will become obvious from the following description, or be recognized by practice of the present invention.
Accompanying drawing explanation
Above-mentioned and/or additional aspect of the present invention and advantage will become obvious and easy understand from accompanying drawing below combining to the description of embodiment, wherein:
Fig. 1 is the flow chart of the synchronous method of logging status according to an embodiment of the invention;
Fig. 2 is the flow chart of the synchronous method of logging status in accordance with another embodiment of the present invention;
Fig. 3 is the flow chart of the synchronous method of logging status according to the present invention's specific embodiment;
Fig. 4 is the structural representation of the synchro system of logging status according to an embodiment of the invention.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Being exemplary below by the embodiment be described with reference to the drawings, only for explaining the present invention, and can not limitation of the present invention being interpreted as.
In describing the invention, it is to be appreciated that term " multiple " refers to two or more; Term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance.
Below with reference to the accompanying drawings synchronous method according to the logging status of the embodiment of the present invention and system are described.
In order to the logging status realized Web App holds is synchronized to Native App version, the present invention proposes a kind of synchronous method of logging status, comprise the following steps: load Web page, wherein, Web page has trigger module; Detect user and whether complete login in Web page; If detect user complete login in Web page, then by trigger module, the login sessions data of user are sent to default local network port; One Native application program obtains login sessions data from default local network port; And the one Native application program login sessions data are sent to the 2nd Native application program, complete login to make the 2nd Native application program according to login sessions data.
Fig. 1 is the flow chart of the synchronous method of logging status according to an embodiment of the invention.As shown in Figure 1, according to the synchronous method of the logging status of the embodiment of the present invention, comprising:
S101, load Web page, wherein, Web page has trigger module.
In an embodiment of the present invention, Web page can be loaded any can loading in the application program of Web page.For example, Web page is loaded by the application program such as mobile phone browser, QQ.Wherein, Web page has trigger mode, block, and trigger module can be JS (Javascript, a kind of based on object and event driven client-side scripting language) module.Trigger module is used for when detecting that user completes login in Web page, and the login sessions data of user are sent to default local network port.
S102, detects user and whether completes login in Web page.
The login sessions data of user if detect user complete login in Web page, are then sent to default local network port by trigger module by S103.
Particularly, in one embodiment of the invention, by trigger module, the mode that login sessions data are asked with (Http Hypertexttransfer protocol, HTML (Hypertext Markup Language)) is occurred to default local network port.
Wherein, login sessions data can comprise session id (Identity, Identity Code) and accounts information etc.
S104, a Native application program obtains login sessions data from default local network port.
In one embodiment of the invention, a Native application program intercepts above-mentioned default local network port to obtain the login sessions data received by this default local network port by built-in Http server.
Particularly, after a Native application program launching, can the wherein built-in Http server of initialization, and intercept this default local network port by this built-in Http server, the login sessions data Http that comprises sent to prepare to receive any application program being loaded with Web page asks.
Wherein, the application program loading Web page can be a Native application program, also can be other application programs that a Native application program is run in the terminal.
S105, login sessions data are sent to the 2nd Native application program by a Native application program, complete login to make the 2nd Native application program according to login sessions data.
In an embodiment of the present invention, the special interface that a Native application program realizes to the 2nd Native application program by the mode that wherein built-in Http server passes through broadcast or carousel sends request.Wherein, the request that Http server sends comprises login sessions data.Thus the 2nd Native application program can receive login sessions request, and login can be completed according to this login sessions request.
Should be appreciated that in an embodiment of the present invention, a Native application program and the 2nd Native application program can be same application programs, also can be different application programs.
The synchronous method of the logging status of the embodiment of the present invention, whether king completes login in the Web page loaded can to detect user, and when completing login, by the trigger module in Web page, the login sessions data of user are sent to default local network port, thus a Native application program can obtain login sessions data from default local network port, and login sessions data are sent to the 2nd Native application program, login is completed according to login sessions data to make the 2nd Native application program, thus, achieve the logging status of page end in Native application program, complete in the webpage that user only need load in the terminal and once log in, synchronous logging status is got final product in Native application program in this mobile terminal, and without the need to again inputting login sessions data, convenient, greatly reduce the repetitive operation of user, improve Consumer's Experience.
Alternatively, in one embodiment of the invention, before login sessions data are sent to the 2nd Native application program by a Native application program, also can comprise: a Native application program obtains the step of the two Native application program corresponding with Web page.Particularly, the identification information (bag name, signing messages etc. as application program) by application program obtains the two Native application program corresponding with Web page.That is, when this Web page is by the 2nd Native application program loading, in a Native application program, login sessions data are sent to the Native application program loading this Web page, thus the logging status that Web holds can be synchronized in the application program loading this Web page, again log in the application without the need to user, decrease the operation of user.
Further, in another embodiment of the present invention, the 2nd Native application program belongs to the default single-row table of application name, and a Native application program all sends login sessions data to the Native application program in the single-row table of application name preset.Wherein, the single-row table of this application name is in advance according to some generate rule.For example, the application program in the single-row table of application name can be the application program of same Internet firm or same developer exploitation or issue.Thus login sessions data can be sent to multiple Native application program according to the single-row table of this application name by a Native application program, to make multiple Native application program all can according to this login sessions data entry, thus remove the operation of user's manual entry from, greatly reduce the operation of user, improve the experience of user further.
Fig. 2 is the flow chart of the synchronous method of logging status in accordance with another embodiment of the present invention.
Fig. 3 is the flow chart of the synchronous method of logging status according to the present invention's specific embodiment.
As shown in Figures 2 and 3, the synchronous method of this logging status, comprises the following steps:
S201, load Web page, wherein, Web page has trigger module.
In an embodiment of the present invention, Web page (in corresponding diagram 3 S1) can be loaded any can loading in the application program of Web page.For example, Web page is loaded by the application program such as mobile phone browser, QQ.Wherein, Web page has trigger mode, block, and trigger module can be JS (Javascript, a kind of based on object and event driven client-side scripting language) module.Trigger module is used for when detecting that user completes login in Web page, and the login sessions data of user are sent to default local network port
S202, detects user and whether completes login in Web page.
The login sessions data of user if detect user complete login in Web page, are then sent to default local network port by trigger module by S203.
Particularly, in one embodiment of the invention, the mode that login sessions data are asked with (Http Hypertexttransfer protocol, HTML (Hypertext Markup Language)) can occur to default local network port by trigger module.
Wherein, login sessions data can comprise session id (Identity, Identity Code) and accounts information etc.
S2 in step S202 and S203 corresponding diagram 3.
S204, a Native application program obtains login sessions data from default local network port.
In one embodiment of the invention, a Native application program intercepts above-mentioned default local network port to obtain the login sessions data received by this default local network port by built-in Http server.
Particularly, after a Native application program launching, can the wherein built-in Http server of initialization, and intercept this default local network port by this built-in Http server, to prepare to receive, any application program being loaded with Web page sends comprises login sessions data Http and ask (S3 and S4 in corresponding diagram 3, wherein, the corresponding Native application A of a Native application program).
Wherein, the application program loading Web page can be a Native application program, also can be other application programs that Native application program is run in the terminal.
S205, login sessions data are sent to the 2nd Native application program by a Native application program.
In an embodiment of the present invention, the special interface that a Native application program realizes to the 2nd Native application program by the mode that wherein built-in Http server passes through broadcast or carousel sends request.Wherein, the request that Http server sends comprises login sessions data.Thus the 2nd Native application program can receive login sessions request, and login can be completed according to this login sessions request.
Should be appreciated that in an embodiment of the present invention, a Native application program and the 2nd Native application program can be same application programs, also can be different application programs.
Wherein, the 2nd Native application program can be the application program corresponding with above-mentioned Web page, also can be the Native application program (in corresponding diagram 3 S5) in the default single-row table of application name.The single-row table of this application name is in advance according to some generate rule.For example, the application program in the single-row table of application name can be the application program of same Internet firm or same developer exploitation or issue.Thus not only the logging status that Web holds can be synchronized to the application program loading this Web page, also can be synchronized to other multiple Native application programs, thus remove the operation of user's manual entry from, greatly reduce the operation of user, improve the experience of user further.
S206, the 2nd Native application program obtains the identification information of a Native application program.
Wherein, the identification information of application program can comprise the bag name, packet signature information etc. of application program.
Particularly, the 2nd Native application program obtains the identification information of a Native application program by the interface that the operating system of mobile terminal provides.
S207, the 2nd Native application program carries out legitimacy verification according to identification information.
In one embodiment of the invention, the 2nd Native application program carries out legitimacy verification by the application program white list list preset with this identification information.Particularly, 2nd Native application program can judge the application program white list the list whether identification information of a Native application program belongs to default, if belonged to, then a Native application program is verified by legitimacy, otherwise a Native application program is not verified by legitimacy.
Wherein, the white list of file names of this application program is what set up in advance, comprises the list of identification information being rated as valid application program.The evaluation result of application program can be provided by authoritative third party, or by carrying out statistical analysis acquisition to the evaluation result of a large number of users, certainly, also obtain by other modes, the present invention does not enumerate.
S208, if verified by legitimacy, then the 2nd Native application program completes login according to login sessions data.
S6-S8 in step S206-S208 corresponding diagram 3.
The synchronous method of the logging status of the embodiment of the present invention, 2nd Native application program is after receiving login sessions data, the identification information of the Native application program sending these login sessions data can be obtained further, and according to this identification information, legitimacy verification is carried out to a Native application program, and login is completed according to these login sessions data after being verified by legitimacy, thus after the source of verification login sessions data is legal, just log in, can prevent the user profile caused because using illegal login sessions data to carry out logging in from revealing, economic loss etc., convenient, while simplifying user operation, improve user account and other information, the fail safe of assets, improve Consumer's Experience further.
In order to realize above-described embodiment, the present invention also proposes a kind of synchro system of logging status.
A kind of synchro system of logging status, comprise: mobile terminal, mobile terminal is for loading Web page, and detect user and whether complete login in Web page, wherein, Web page has trigger module, if detect user complete login in Web page, then by trigger module, the login sessions data of user is sent to default local network port; One Native application program, a Native application program is used for obtaining login sessions data from default local network port, and sends login sessions data; And the 2nd Native application program, the 2nd Native application program for receiving login sessions data, and completes login according to login sessions data.
Fig. 4 is the structural representation of the synchro system of logging status according to an embodiment of the invention.
As shown in Figure 4, according to the system of the embodiment of the present invention, comprising: mobile terminal 10, a Native application program 20 and the 2nd Native application program 30.
Particularly, mobile terminal 10 mobile terminal is for loading Web page, and detect user and whether complete login in Web page, wherein, Web page has trigger module, if detect user complete login in Web page, then by 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 Web page any can loading in the application program of Web page.For example, mobile terminal 10 loads Web page by the application program such as mobile phone browser, QQ.Wherein, Web page has trigger mode, block, and trigger module can be JS (Javascript, a kind of based on object and event driven client-side scripting language) module.Trigger module is used for when detecting that user completes login in Web page, and the login sessions data of user are sent to default local network port.
More specifically, in one embodiment of the invention, if mobile terminal 10 detects user and completes login in Web page, then by trigger module, the mode that login sessions data are asked with (Http Hypertext transfer protocol, HTML (Hypertext Markup Language)) is occurred to default local network port.
Wherein, login sessions data can comprise session id (Identity, Identity Code) and accounts information etc.
One Native application program 20 for obtaining login sessions data from default local network port, and sends login sessions data.
2nd Native application program 30 for receiving login sessions data, and completes login according to login sessions data.
In one embodiment of the invention, a Native application program 20 intercepts above-mentioned default local network port to obtain the login sessions data received by this default local network port by built-in Http server.
More specifically, after a Native application program 20 starts, can the wherein built-in Http server of initialization, and intercept this default local network port by this built-in Http server, ask to prepare receiving any login sessions data Http that comprises being loaded with the application program transmission of Web page.
Wherein, the application program loading Web page can be a Native application program 20, also can be other application programs that a Native application program 20 is run in the terminal.
In an embodiment of the present invention, the special interface that a Native application program 20 realizes to the 2nd Native application program 30 by the mode that wherein built-in Http server passes through broadcast or carousel sends request.Wherein, the request that Http server sends comprises login sessions data.Thus the 2nd Native application program 30 can receive login sessions request, and login can be completed according to this login sessions request.
Should be appreciated that in an embodiment of the present invention, a Native application program and the 2nd Native application program can be same application programs, also can be different application programs.
The synchro system of the logging status of the embodiment of the present invention, whether king completes login in the Web page loaded can to detect user, and when completing login, by the trigger module in Web page, the login sessions data of user are sent to default local network port, thus a Native application program can obtain login sessions data from default local network port, and login sessions data are sent to the 2nd Native application program, login is completed according to login sessions data to make the 2nd Native application program, thus, achieve the logging status of page end in Native application program, complete in the webpage that user only need load in the terminal and once log in, can synchronous logging status in Native application program in this mobile terminal.
Alternatively, in one embodiment of the invention, a Native application program also for before transmission login sessions data, obtains the two Native application program corresponding with Web page.Particularly, the identification information (bag name, signing messages etc. as application program) by application program obtains the two Native application program corresponding with Web page.That is, when this Web page is by the 2nd Native application program loading, in a Native application program, login sessions data are sent to the Native application program loading this Web page, thus the logging status that Web holds can be synchronized in the application program loading this Web page, again log in the application without the need to user, decrease the operation of user.
Further, in another embodiment of the present invention, the 2nd Native application program belongs to the default single-row table of application name, and a Native application program all sends login sessions data to the Native application program in the single-row table of application name preset.Wherein, the single-row table of this application name is in advance according to some generate rule.For example, the application program in the single-row table of application name can be the application program of same Internet firm or same developer exploitation or issue.Thus login sessions data can be sent to multiple Native application program according to the single-row table of this application name by a Native application program, to make multiple Native application program all can according to this login sessions data entry, thus remove the operation of user's manual entry from, greatly reduce the operation of user, improve the experience of user further.
In another embodiment of the present invention, 2nd Native application program is also for after Native application program transmission login sessions data, obtain the identification information of a Native application program, and carry out legitimacy verification according to identification information, if verified by legitimacy, then complete login according to login sessions data.
Wherein, the identification information of application program can comprise the bag name, packet signature information etc. of application program.
Particularly, the 2nd Native application program obtains the identification information of a Native application program by the interface that the operating system of mobile terminal provides.
In one embodiment of the invention, the 2nd Native application program carries out legitimacy verification by the application program white list list preset with this identification information.Particularly, 2nd Native application program can judge the application program white list the list whether identification information of a Native application program belongs to default, if belonged to, then a Native application program is verified by legitimacy, otherwise a Native application program is not verified by legitimacy.
Wherein, the white list of file names of this application program is what set up in advance, comprises the list of identification information being rated as valid application program.The evaluation result of application program can be provided by authoritative third party, or by carrying out statistical analysis acquisition to the evaluation result of a large number of users, certainly, also obtain by other modes, the present invention does not enumerate.
Thus, 2nd Native application program is after receiving login sessions data, the identification information of the Native application program sending these login sessions data can be obtained further, and according to this identification information, legitimacy verification is carried out to a Native application program, and login is completed according to these login sessions data after being verified by legitimacy, thus after the source of verification login sessions data is legal, just log in, can prevent the user profile caused because using illegal login sessions data to carry out logging in from revealing, economic loss etc., convenient, while simplifying user operation, improve user account and other information, the fail safe of assets, improve Consumer's Experience further.
Describe and can be understood in flow chart or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this specification, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasablely edit read-only memory (EPROM or flash memory), fiber device, and portable optic disk read-only memory (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanner to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer storage.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the application-specific integrated circuit (ASIC) of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
In the description of this specification, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, identical embodiment or example are not necessarily referred to the schematic representation of above-mentioned term.And the specific features of description, structure, material or feature can combine in an appropriate manner in any one or more embodiment or example.
Although illustrate and describe embodiments of the invention, those having ordinary skill in the art will appreciate that: can carry out multiple change, amendment, replacement and modification to these embodiments when not departing from principle of the present invention and aim, scope of the present invention is by claim and equivalency thereof.

Claims (12)

1. a synchronous method for logging status, is characterized in that, comprises the following steps:
Load Web page, wherein, described Web page has trigger module;
Detect user and whether complete login in described Web page;
If detect described user complete login in described Web page, then by described trigger module, the login sessions data of described user are sent to default local network port;
One Native application program obtains described login sessions data from described default local network port; And
Described login sessions data are sent to described 2nd Native application program by a described Native application program, complete login to make described 2nd Native application program according to described login sessions data.
2. the synchronous method of logging status as claimed in claim 1, is characterized in that, before described login sessions data are sent to described 2nd Native application program by a described Native application program, also comprise:
A described Native application program obtains the described two Native application program corresponding with described Web page.
3. the synchronous method of logging status as claimed in claim 2, it is characterized in that, described 2nd Native application program belongs to the default single-row table of application name, and a described Native application program all sends described login sessions data to the Native application program in the single-row table of described default application name.
4. the synchronous method of logging status as claimed in claim 1, it is characterized in that, described login sessions data comprise session id and account information.
5. the synchronous method of logging status as claimed in claim 1, is characterized in that, after described login sessions data are sent to described 2nd Native application program by a described Native application program, also comprise:
Described 2nd Native application program obtains the identification information of a described Native application program;
Described 2nd Native application program carries out legitimacy verification according to described identification information;
If verified by described legitimacy, then described 2nd Native application program completes login according to described login sessions data.
6. the synchronous method of logging status as claimed in claim 1, it is characterized in that, a described Native application program and described 2nd Native application program belong to same application program.
7. a synchro system for logging status, is characterized in that, comprising:
Mobile terminal, described mobile terminal is for loading Web page, and detect user and whether complete login in described Web page, wherein, described Web page has trigger module, if detect described user complete login in described Web page, then by described trigger module, the login sessions data of described user are sent to default local network port;
One Native application program, a described Native application program is used for obtaining described login sessions data from described default local network port, and sends described login sessions data; And
2nd Native application program, described 2nd Native application program for receiving described login sessions data, and completes login according to described login sessions data.
8. the synchro system of logging status as claimed in claim 7, is characterized in that,
A described Native application program also for before the described login sessions data of transmission, obtains the described two Native application program corresponding with described Web page.
9. the synchro system of logging status as claimed in claim 8, it is characterized in that, described 2nd Native application program belongs to the default single-row table of application name, and a described Native application program all sends described login sessions data to the Native application program in the single-row table of described default application name.
10. the synchro system of logging status as claimed in claim 7, it is characterized in that, described login sessions data comprise session id and account information.
The synchro system of 11. logging status as claimed in claim 7, is characterized in that,
Described 2nd Native application program is also for after sending described login sessions data in a described Native application program, obtain the identification information of a described Native application program, and carry out legitimacy verification according to described identification information, if verified by described legitimacy, then complete login according to described login sessions data.
The synchro system of 12. logging status as claimed in claim 7, is characterized in that, a described Native application program and described 2nd Native application program belong to same 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 true CN104580380A (en) 2015-04-29
CN104580380B 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)

Cited By (6)

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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504616A (en) * 2009-03-23 2009-08-12 金蝶软件(中国)有限公司 Method and apparatus for login of Windows application program through Web application
CN102685576A (en) * 2011-03-01 2012-09-19 索尼公司 Method and apparatus for switching between a native application and a second application
US20120324556A1 (en) * 2011-06-17 2012-12-20 Ebay Inc. Passporting credentials between a mobile app and a web browser
CN103414824A (en) * 2013-08-14 2013-11-27 惠州Tcl移动通信有限公司 Automatic login processing method and system based on mobile terminal
CN103780627A (en) * 2014-01-30 2014-05-07 吴锦洲 Native APP, Web APP and Wechat-similar APP information synchronization system
CN104113534A (en) * 2014-07-02 2014-10-22 百度在线网络技术(北京)有限公司 System and method for logging in applications (APPs)

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504616A (en) * 2009-03-23 2009-08-12 金蝶软件(中国)有限公司 Method and apparatus for login of Windows application program through Web application
CN102685576A (en) * 2011-03-01 2012-09-19 索尼公司 Method and apparatus for switching between a native application and a second application
US20120324556A1 (en) * 2011-06-17 2012-12-20 Ebay Inc. Passporting credentials between a mobile app and a web browser
CN103414824A (en) * 2013-08-14 2013-11-27 惠州Tcl移动通信有限公司 Automatic login processing method and system based on mobile terminal
CN103780627A (en) * 2014-01-30 2014-05-07 吴锦洲 Native APP, Web APP and Wechat-similar APP information synchronization system
CN104113534A (en) * 2014-07-02 2014-10-22 百度在线网络技术(北京)有限公司 System and method for logging in applications (APPs)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331042A (en) * 2015-07-01 2017-01-11 阿里巴巴集团控股有限公司 Single sign-on method and device for heterogeneous user system
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
CN106066803A (en) * 2016-05-25 2016-11-02 北京奇虎科技有限公司 Application program runs the method and device controlled
CN106066803B (en) * 2016-05-25 2019-12-13 北京奇虎科技有限公司 application program operation control method and device
CN109547480A (en) * 2018-12-27 2019-03-29 北京城市网邻信息技术有限公司 A kind of login method and device
CN109831416A (en) * 2018-12-27 2019-05-31 北京城市网邻信息技术有限公司 A kind of login method and device
CN113014448A (en) * 2021-02-23 2021-06-22 深信服科技股份有限公司 Login state rule extraction method and device and electronic equipment
CN113014448B (en) * 2021-02-23 2022-09-30 深信服科技股份有限公司 Login state rule extraction method and device and electronic equipment

Also Published As

Publication number Publication date
CN104580380B (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN104580380A (en) Synchronization method and system for logging status
CN104378342B (en) Many accounts verification method, Apparatus and system
CN104519050B (en) Login method and login system
CN104468592A (en) Login method and system
CN108718337B (en) Website account login, verification and verification information processing method, device and system
US20170300696A1 (en) Software verification method and apparatus
CN102752371B (en) In client, realize method and the client of dodging screen
CN108647306A (en) A kind of Quick Response Code barcode scanning exchange method and device
CN104239467A (en) Application program recommendation method, system and device
CN104572239A (en) Cloud platform-based template making system and method
CN104077151B (en) The method and electronic equipment of fast start network application
CN103179021A (en) Method and system for aggregating heterogenous micro-blogs
CN104462934B (en) A kind of information processing method and electronic equipment
CN105100291A (en) Resource address generating method, device and system
US20150172291A1 (en) Verifying user identity
CN111314355B (en) Authentication method, device, equipment and medium of VPN (virtual private network) server
CN104348893A (en) Data synchronization method and device
CN104077158A (en) Plugin installation method and device
CN104917752B (en) A kind of method for detecting abnormality and system based on communication
CN105187391B (en) APP and its logging in network access point methods, server and system
CN104202432A (en) Remote web management system and method
CN106101127A (en) A kind of weight discriminating methods, devices and systems
CN103198250A (en) Method for auditing applications of intelligent television
CN112242944A (en) File processing method and related device
CN112650557B (en) Command execution method and device

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