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

Synchronization method and system for logging status Download PDF

Info

Publication number
CN104580380A
CN104580380A CN 201410778650 CN201410778650A CN104580380A CN 104580380 A CN104580380 A CN 104580380A CN 201410778650 CN201410778650 CN 201410778650 CN 201410778650 A CN201410778650 A CN 201410778650A CN 104580380 A CN104580380 A CN 104580380A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
logging
application
program
native
status
Prior art date
Application number
CN 201410778650
Other languages
Chinese (zh)
Inventor
朱建庭
许凌志
周科科
辛盟
汪辉平
Original Assignee
北京百度网讯科技有限公司
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

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/02Network-specific arrangements or communication protocols supporting networked applications involving the use of web-based technology, e.g. hyper text transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/08Network-specific arrangements or communication protocols supporting networked applications adapted for terminal emulation, e.g. telnet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/10Network-specific arrangements or communication protocols supporting networked applications in which an application is distributed across nodes in the network
    • H04L67/1095Network-specific arrangements or communication protocols supporting networked applications in which an application is distributed across nodes in the network for supporting replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes or user terminals or syncML
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/14Network-specific arrangements or communication protocols supporting networked applications for session management

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

登录状态的同步方法和系统 Synchronization method and system login status

技术领域 FIELD

[0001] 本发明涉及互联网技术领域,特别涉及一种登录状态的同步方法和系统。 [0001] The present invention relates to the field of Internet technologies, and particularly relates to a method and system for synchronizing the login state.

背景技术 Background technique

[0002] 对于大多数互联网开发公司来说,每个公司所开发的应用产品主要有Web App (基于Web技术的应用程序)和Native App (基于本地(操作系统)运行的应用程序)两种版本。 [0002] For most Internet development companies, each company developed applications are mainly Web App (Web-based application technology) and Native App (application based on local (operating system) running) two versions . 目前,同一个公司的多种应用产品Web App版本之间可以实现登录状态的同步,多种应用产品的Native App版本之间也可以是实现同步。 Currently, you can synchronize logged between a company with a variety of applications Web App version, between Native App version of a variety of applications can be synchronized.

[0003] 但是,用户在使用应用的时候,可能一些应用产品使用的是Web App版本,而另外一些应用产品使用的是Native App版本,因此,需要一种能够在Web App与Native App之间实现登录状态的同步的技术。 [0003] However, when the user is using the application, some applications may use the Web App product version, while other applications are using the Native App version, therefore, can be achieved between the need for a Web App and Native App synchronous technology login state. 目前,加载Web页面的Native App可通过监测该NativeApp中的Webview里的特点cookie项的值的变化将Web页面的登录状态同步到加载该Web页面的Native App,但是,却不能将登录状态同步到其他Native App0而且,这种方案仅适用于对Native App中加载的Web页面的登录状态同步,对于非Native App中加载的Web页面的登录状态则无法同步,因而,难以将Web页面的登录状态同步到Native App版本,而需要用户重新输入登录信息进行登录,操作繁琐,十分不方便,用户体验差。 Currently, loading Web pages Native App by monitoring the NativeApp the Webview change in the characteristics of the value of the cookie entry Web page login status synchronization to load the Web page of Native App, however, not be able to log on to the state synchronization other Native App0 Moreover, this program is only available for synchronization, for non-Native App logged in to load a Web page can not be synchronized to the login status of Native App Web page to load, and therefore, it is difficult to login Web page synchronization status to Native App version, and requires the user to re-enter login information to log in, complicated operation, very inconvenient, poor user experience.

发明内容 SUMMARY

[0004] 本发明旨在至少在一定程度上解决上述技术问题。 [0004] The present invention is intended to solve the above problems at least to some extent.

[0005] 为此,本发明的第一个目的在于提出一种登录状态的同步方法,实现了网页端的登录状态到Native应用程序中,用户只需在移动终端中加载的网页中完成一次登录,在该移动终端中Native应用程序中即可同步登录状态。 [0005] For this purpose, a first object of the present invention is to provide a method for synchronizing the login state to achieve a login state to the Native web client application, the user simply loads the page is completed in the mobile terminal login, in the mobile terminal Native applications to sync logged.

[0006] 本发明的第二个目的在于提出一种登录状态的同步系统。 [0006] A second object of the present invention is to provide a system for synchronizing the login state.

[0007] 为达上述目的,根据本发明第一方面实施例提出了一种登录状态的同步方法,加载Web页面,其中,所述Web页面具有触发模块;检测用户在所述Web页面是否完成登录;如果检测所述用户在所述Web页面已完成登录,则通过所述触发模块将所述用户的登录会话数据发送至预设本地网络端口;第一Native应用程序从所述预设本地网络端口获取所述登录会话数据;以及所述第一Native应用程序将所述登录会话数据发送至所述第二Native应用程序,以使所述第二Native应用程序根据所述登录会话数据完成登录。 [0007] To achieve the above object, according to a first aspect of the present invention proposes a method of synchronization login status, the Web page is loaded, wherein the Web page has a trigger module; detecting whether the user is registered in the Web page is completed ; completed if it is detected that the user has logged in to the Web page, then the trigger module by the user's login session data to a preset local network port; a first application program from the preset native local network port obtaining the login session data; and the first application of the Native login session Native data to the second application to the second application program is completed Native log data from the login session.

[0008] 本发明实施例的登录状态的同步方法,可检测用户在已加载的Web页面是否王完成登录,并在完成登录时,通过Web页面中的触发模块将用户的登录会话数据发送至预设本地网络端口,从而第一Native应用程序可从预设本地网络端口获取登录会话数据,并将登录会话数据发送至第二Native应用程序,以使第二Native应用程序根据登录会话数据完成登录,由此,实现了网页端的登录状态到Native应用程序中,用户只需在移动终端中加载的网页中完成一次登录,在该移动终端中Native应用程序中即可同步登录状态。 [0008] The synchronization method logged embodiment of the present invention, can detect whether the user Wang completed log in the loaded Web page, and upon completion of the log, to send the user login session data to the pre through a Web page trigger module local network port is provided, so that the first native application can acquire data from a preset login session local network port, and the second data to the session log native application to the second application completes native log according to the login session data, thereby, a web client login state to the Native application, the user simply loads the page in a mobile terminal in a completed log, Native applications to sync signed in the mobile terminal.

[0009] 本发明第二方面实施例提出了一种登录状态的同步系统,包括:移动终端,所述移动终端用于加载Web页面,并检测用户在所述Web页面是否完成登录,其中,所述Web页面具有触发模块,如果检测所述用户在所述Web页面已完成登录,则通过所述触发模块将所述用户的登录会话数据发送至预设本地网络端口;第一Native应用程序,所述第一Native应用程序用于从所述预设本地网络端口获取所述登录会话数据,并发送所述登录会话数据;以及第二Native应用程序,所述第二Native应用程序用于接收所述登录会话数据,并根据所述登录会话数据完成登录。 Embodiment [0009] The second aspect of the embodiment of the present invention proposes a system for synchronizing login status, comprising: a mobile terminal, the mobile terminal for loading a Web page, and detects whether the user logs in the Web page is completed, wherein the said Web page has a trigger module, if it is detected that the user has logged in to the Web page is completed, the trigger module through the user's login session data to a preset local network port; a first native application, the native application program for said first preset from the local network port login session to acquire the data and transmits the login session data; and a second native application, the second application program for receiving the native login session data, and completes the login from the login session data.

[0010] 本发明实施例的登录状态的同步系统,可检测用户在已加载的Web页面是否王完成登录,并在完成登录时,通过Web页面中的触发模块将用户的登录会话数据发送至预设本地网络端口,从而第一Native应用程序可从预设本地网络端口获取登录会话数据,并将登录会话数据发送至第二Native应用程序,以使第二Native应用程序根据登录会话数据完成登录,由此,实现了网页端的登录状态到Native应用程序中,用户只需在移动终端中加载的网页中完成一次登录,在该移动终端中Native应用程序中即可同步登录状态。 [0010] synchronization system login state embodiment of the present invention, can detect whether the user Wang completed log in the loaded Web page, and upon completion of the log, to send the user login session data to the pre through a Web page trigger module local network port is provided, so that the first native application can acquire data from a preset login session local network port, and the second data to the session log native application to the second application completes native log according to the login session data, thereby, a web client login state to the Native application, the user simply loads the page in a mobile terminal in a completed log, Native applications to sync signed in the mobile terminal.

[0011] 本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。 [0011] Additional aspects and advantages of the invention will be set forth in part in the description which follows, from the following description in part be apparent from, or learned by practice of the present invention.

附图说明 BRIEF DESCRIPTION

[0012] 本发明的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中: [0012] The foregoing and / or other aspects and advantages of the invention will be described with reference to embodiments in conjunction with the embodiments become apparent and more readily appreciated below, wherein:

[0013] 图1为根据本发明一个实施例的登录状态的同步方法的流程图; [0013] FIG. 1 is a flowchart of a login state synchronization method of the embodiment of the present invention;

[0014] 图2为根据本发明另一个实施例的登录状态的同步方法的流程图; [0014] FIG 2 is a flowchart login state synchronization method according to another embodiment of the present invention;

[0015] 图3为根据本发明一个具体实施例的登录状态的同步方法的流程图; [0015] FIG. 3 is a flowchart of a login state synchronization method embodiment of the present invention;

[0016]图4为根据本发明一个实施例的登录状态的同步系统的结构示意图。 [0016] FIG. 4 is a schematic diagram of the configuration of the synchronization system login state to one embodiment of the present invention.

具体实施方式 detailed description

[0017] 下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。 [0017] Example embodiments of the present invention is described in detail below, exemplary embodiments of the embodiment shown in the accompanying drawings, wherein same or similar reference numerals designate the same or similar elements or elements having the same or similar functions. 下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。 By following with reference to the embodiments described are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

[0018] 在本发明的描述中,需要理解的是,术语“多个”指两个或两个以上;术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性。 [0018] In the description of the present invention, it is to be understood that the term "plurality" means two or more; the terms "first", "second" are for illustrative purposes only, and not intended to indicate or imply relative importance.

[0019] 下面参考附图描述根据本发明实施例的登录状态的同步方法和系统。 [0019] The following figures described synchronization method and system login state according to embodiments of the present invention by reference.

[0020] 为了实现将Web App端的登录状态同步到Native App版本,本发明提出了一种登录状态的同步方法,包括以下步骤:加载Web页面,其中,Web页面具有触发模块;检测用户在Web页面是否完成登录;如果检测用户在Web页面已完成登录,则通过触发模块将用户的登录会话数据发送至预设本地网络端口;第一Native应用程序从预设本地网络端口获取登录会话数据;以及第一Native应用程序将登录会话数据发送至第二Native应用程序,以使第二Native应用程序根据登录会话数据完成登录。 [0020] In order to achieve the login state Web App end synchronized to the Native App version, the present invention provides a synchronization method of the login state, comprising the steps of: loading a Web page, wherein, the Web page has a trigger module; detecting a user in a Web page login is complete; if it detects that the user has completed the login Web page, the module is triggered by the user's login session data is sent to the local network, the default port; first native applications from the local network, the default port for login session data; and a second a Native application login session Native data to a second application to the second application completes Native log data according to the login session.

[0021] 图1为根据本发明一个实施例的登录状态的同步方法的流程图。 [0021] FIG. 1 is a flowchart of a login state synchronization method of the embodiment of the present invention. 如图1所示,根据本发明实施例的登录状态的同步方法,包括: 1, according to the login state synchronization method embodiment of the present invention, comprising:

[0022] S101,加载Web页面,其中,Web页面具有触发模块。 [0022] S101, load the Web page that, the Web page has a trigger module.

[0023] 在本发明的实施例中,Web页面可在任何能够加载Web页面的应用程序中被加载。 [0023] In an embodiment of the present invention, Web pages can be loaded in any application can be loaded on the Web page. 举例来说,可通过手机浏览器、QQ等应用程序加载Web页面。 For example, through the mobile browser, QQ and other applications load the Web page. 其中,Web页面具有触发模,块,触发模块可以是JS(Javascript,一种基于对象和事件驱动的客户端脚本语言)模块。 Which, Web pages have triggered mode, blocks, modules can be triggered JS (Javascript, client-side scripting language for object-based and event-driven) module. 触发模块用于当检测到用户在Web页面完成登录时,将用户的登录会话数据发送至预设本地网络端口。 Trigger module is used to detect when the user when the Web page to complete login, sends the user's logon session data to a preset local network port.

[0024] S102,检测用户在Web页面是否完成登录。 [0024] S102, detects whether the user completes the login Web page.

[0025] S103,如果检测用户在Web页面已完成登录,则通过触发模块将用户的登录会话数据发送至预设本地网络端口。 [0025] S103, if it is detected that the user has completed the login Web page, the user's login session data will be sent to the local network ports by default trigger module.

[0026] 具体地,在本发明的一个实施例中,可通过触发模块将登录会话数据以(HttpHypertext transfer protocol,超文本传输协议)请求的方式发生至预设本地网络端口。 [0026] Specifically, in one embodiment of the present invention, the login session may be triggered by a data module manner (HttpHypertext transfer protocol, Hypertext Transfer Protocol) request to a predetermined occurrence of the local network port.

[0027] 其中,登录会话数据可包括会话ID (Identity,身份标识码)和账户信息等。 [0027] wherein log data session may include a session ID (Identity, identification code) and account information.

[0028] S104,第一Native应用程序从预设本地网络端口获取登录会话数据。 [0028] S104, the first Native application gets data from the default login session local network port.

[0029] 在本发明的一个实施例中,第一Native应用程序可通过内置的Http服务器侦听上述预设本地网络端口以获取该预设本地网络端口所接收到的登录会话数据。 [0029] In one embodiment of the invention, the first application may listen Native The preset local network port built-in Http server to get the predetermined local network port received login session data.

[0030] 具体地,在第一Native应用程序启动后,可初始化其中内置的Http服务器,并通过该内置的Http服务器侦听该预设本地网络端口,以准备接收任何加载了Web页面的应用程序发送的包含登录会话数据Http请求。 [0030] Specifically, after the first Native application is started, which may initialize the built-in Http server, and the server through the built-in Http local network listen to the default port, ready to receive any application loaded Web page Http request contains the login session data transmitted.

[0031] 其中,加载Web页面的应用程序可以是第一Native应用程序,也可以是第一Native应用程序所在移动终端中运行的其他应用程序。 [0031] wherein the load application Web page may be a first Native application may be the first Native applications where other applications running in the mobile terminal.

[0032] S105,第一Native应用程序将登录会话数据发送至第二Native应用程序,以使第二Native应用程序根据登录会话数据完成登录。 [0032] S105, the first Native application login session Native data to a second application to the second application completes Native log data according to the login session.

[0033] 在本发明的实施例中,第一Native应用程序可通过其中内置的Http服务器通过广播或者轮播的方式向第二Native应用程序所实现的特定接口发送请求。 [0033] In an embodiment of the present invention, the first Native applications can be built in which the server sends a request to Http second Native application specific interface implemented by the broadcast carousel or manner. 其中,Http服务器所发送的请求中包括登录会话数据。 Wherein Http request sent by the server comprises a session login data. 从而第二Native应用程序可接收到登录会话请求,并可根据该登录会话请求完成登录。 Native applications so that the second login session may receive the request, and complete the logon request according to the login session.

[0034] 应当理解,在本发明的实施例中,第一Native应用程序与第二Native应用程序可以是同一个应用程序,也可以是不同的应用程序。 [0034] It should be understood that in the embodiment of the present invention, the first and second application Native Native applications can be the same application, or may be different applications.

[0035] 本发明实施例的登录状态的同步方法,可检测用户在已加载的Web页面是否王完成登录,并在完成登录时,通过Web页面中的触发模块将用户的登录会话数据发送至预设本地网络端口,从而第一Native应用程序可从预设本地网络端口获取登录会话数据,并将登录会话数据发送至第二Native应用程序,以使第二Native应用程序根据登录会话数据完成登录,由此,实现了网页端的登录状态到Native应用程序中,用户只需在移动终端中加载的网页中完成一次登录,在该移动终端中Native应用程序中即可同步登录状态,而无需再次输入登录会话数据,更加方便,大大减少了用户的重复操作,提升了用户体验。 [0035] The synchronization method logged embodiment of the present invention, can detect whether the user Wang completed log in the loaded Web page, and upon completion of the log, to send the user login session data to the pre through a Web page trigger module local network port is provided, so that the first native application can acquire data from a preset login session local network port, and the second data to the session log native application to the second application completes native log according to the login session data, thereby, a web client login state to the Native application, the user simply loads the page in a mobile terminal in a completed log, Native applications to sync signed in the mobile terminal, without having to re-enter the login session data, more convenient, greatly reducing the repeat users, enhance the user experience.

[0036] 可选地,在本发明的一个实施例中,在第一Native应用程序将登录会话数据发送至第二Native应用程序之前,还可包括:第一Native应用程序获取与Web页面对应的第二Native应用程序的步骤。 [0036] Alternatively, in one embodiment of the present invention, the Native application in a first data before transmitting the login session to the second Native applications, further comprising: a first Native application acquires the Web page corresponding to the second step Native application. 具体地,可通过应用程序的标识信息(如应用程序的包名、签名信息等)获取与Web页面对应的第二Native应用程序。 Specifically, the second acquiring Native application through the Web page corresponding to the application identification information (e.g., an application package name, and signature information, etc.). 也就是说,当该Web页面是由第二Native应用程序加载时,在第一Native应用程序将登录会话数据发送至加载该Web页面的Native应用程序,从而能够将Web端的登录状态同步到加载该Web页面的应用程序中,无需用户再次在应用程序中登录,减少了用户的操作。 That is, when the second Web page is loaded by the Native application in a first Native application login session data to loading Native applications for the Web page, the Web terminal can be synchronized to load the login state application Web page, without requiring the user to log in again in the application, reducing the user's operation.

[0037] 进一步地,在本发明的另一个实施例中,第二Native应用程序属于预设的应用程序名单列表,第一Native应用程序向预设的应用程序名单列表中的Native应用程序均发送登录会话数据。 [0037] Further, in another embodiment of the present invention, the second Native applications are in the preset list list of applications, the first Native applications are transmitted to a preset list of Native application list applications login session data. 其中,该应用程序名单列表是预先根据一些规则生成的。 Among them, the application list is a list in advance, according to some rules generated. 举例来说,应用程序名单列表中的应用程序可以是同一互联网公司或者同一开发者开发或发布的应用程序。 For example, the application list application list may be the same company or the same Internet developers to develop or publish applications. 从而第一Native应用程序可根据该应用程序名单列表将登录会话数据发送至多个Native应用程序,以使多个Native应用程序均能够根据该登录会话数据登录,从而免去用户手动登录的操作,大大减少了用户的操作,进一步提升了用户的使用体验。 Native that the first application may send a list of logon session data to a plurality of Native applications, so that the plurality of Native applications are able to log in to the registration session data list according to the application, thereby eliminating manual user login operation, greatly reducing the user's operation, to further enhance the user experience.

[0038] 图2为根据本发明另一个实施例的登录状态的同步方法的流程图。 [0038] FIG 2 is a flowchart login state synchronization method according to another embodiment of the present invention.

[0039] 图3为根据本发明一个具体实施例的登录状态的同步方法的流程图。 [0039] FIG. 3 is a flowchart of a login state synchronization method embodiment of the present invention.

[0040] 如图2和图3所示,该登录状态的同步方法,包括以下步骤: [0040] As shown in FIG. 2 and FIG. 3, the login state synchronization method, comprising the steps of:

[0041] S201,加载Web页面,其中,Web页面具有触发模块。 [0041] S201, load the Web page that, the Web page has a trigger module.

[0042] 在本发明的实施例中,可在任何能够加载Web页面的应用程序中加载Web页面(对应图3中SI)。 [0042] In an embodiment of the present invention, a Web page can be loaded (in SI corresponding to FIG. 3) can be loaded in any application on the Web page. 举例来说,可通过手机浏览器、QQ等应用程序加载Web页面。 For example, through the mobile browser, QQ and other applications load the Web page. 其中,Web页面具有触发模,块,触发模块可以是JSCJavascript,一种基于对象和事件驱动的客户端脚本语言)模块。 Which, Web page has a trigger module, block, trigger module can be JSCJavascript, based on the object and event-driven client-side scripting language) modules. 触发模块用于当检测到用户在Web页面完成登录时,将用户的登录会话数据发送至预设本地网络端口 Trigger module is used to detect when the user when the Web page to complete the login, the user's login session data is sent to the local network, the default port

[0043] S202,检测用户在Web页面是否完成登录。 [0043] S202, detects whether the user completes the login Web page.

[0044] S203,如果检测用户在Web页面已完成登录,则通过触发模块将用户的登录会话数据发送至预设本地网络端口。 [0044] S203, if it is detected that the user has completed the login Web page, the user's login session data will be sent to the local network ports by default trigger module.

[0045] 具体地,在本发明的一个实施例中,触发模块可将登录会话数据以(HttpHypertext transfer protocol,超文本传输协议)请求的方式发生至预设本地网络端口。 [0045] Specifically, in one embodiment of the invention, the trigger module may login session data (HttpHypertext transfer protocol, Hypertext Transfer Protocol) request to the occurrence of a predetermined manner the local network port.

[0046] 其中,登录会话数据可包括会话ID (Identity,身份标识码)和账户信息等。 [0046] wherein log data session may include a session ID (Identity, identification code) and account information.

[0047] 步骤S202和S203对应图3中S2。 [0047] correspond to steps S202 and S203 in FIG. 3 S2.

[0048] S204,第一Native应用程序从预设本地网络端口获取登录会话数据。 [0048] S204, the first Native application gets data from the default login session local network port.

[0049] 在本发明的一个实施例中,第一Native应用程序可通过内置的Http服务器侦听上述预设本地网络端口以获取该预设本地网络端口所接收到的登录会话数据。 [0049] In one embodiment of the invention, the first application may listen Native The preset local network port built-in Http server to get the predetermined local network port received login session data.

[0050] 具体地,在第一Native应用程序启动后,可初始化其中内置的Http服务器,并通过该内置的Http服务器侦听该预设本地网络端口,以准备接收任何加载了Web页面的应用程序发送的包含登录会话数据Http请求(对应图3中S3和S4,其中,第一Native应用程序对应Native应用程序A)。 [0050] Specifically, after the first Native application is started, which may initialize the built-in Http server, and the server through the built-in Http local network listen to the default port, ready to receive any application loaded Web page transmitting data comprises a login session Http request (corresponding to S3 and S4 in FIG. 3, wherein the first Native Native application corresponding to the application a).

[0051] 其中,加载Web页面的应用程序可以是第一Native应用程序,也可以是Native应用程序所在移动终端中运行的其他应用程序。 [0051] wherein the load application Web page may be a first Native applications, other applications may be applications where the mobile terminal Native running.

[0052] S205,第一Native应用程序将登录会话数据发送至第二Native应用程序。 [0052] S205, the first Native application login session Native data to a second application.

[0053] 在本发明的实施例中,第一Native应用程序可通过其中内置的Http服务器通过广播或者轮播的方式向第二Native应用程序所实现的特定接口发送请求。 [0053] In an embodiment of the present invention, the first Native applications can be built in which the server sends a request to Http second Native application specific interface implemented by the broadcast carousel or manner. 其中,Http服务器所发送的请求中包括登录会话数据。 Wherein Http request sent by the server comprises a session login data. 从而第二Native应用程序可接收到登录会话请求,并可根据该登录会话请求完成登录。 Native applications so that the second login session may receive the request, and complete the logon request according to the login session.

[0054] 应当理解,在本发明的实施例中,第一Native应用程序与第二Native应用程序可以是同一个应用程序,也可以是不同的应用程序。 [0054] It should be understood that in the embodiment of the present invention, the first and second application Native Native applications can be the same application, or may be different applications.

[0055] 其中,第二Native应用程序可以是与上述Web页面对应的应用程序,也可以是预设的应用程序名单列表中的Native应用程序(对应图3中S5)。 [0055] wherein the second Native application may be a Web page corresponding to the above-described application, the application may be preset list Native application list (corresponding to S5 of FIG. 3). 该应用程序名单列表是预先根据一些规则生成的。 The application list is a list in advance, according to some rules generated. 举例来说,应用程序名单列表中的应用程序可以是同一互联网公司或者同一开发者开发或发布的应用程序。 For example, the application list application list may be the same company or the same Internet developers to develop or publish applications. 从而不但可以将Web端的登录状态同步到加载该Web页面的应用程序,还可同步到其他多个Native应用程序,从而免去用户手动登录的操作,大大减少了用户的操作,进一步提升了用户的使用体验。 So not only can end Web login status is synchronized to load the Web page of the application, can be synchronized to multiple other Native applications, thereby eliminating the need for users to manually log the operation, greatly reducing the user's operation, to further enhance the user's experience.

[0056] S206,第二Native应用程序获取第一Native应用程序的标识信息。 [0056] S206, the second application Native Native obtain identification information of a first application program.

[0057] 其中,应用程序的标识信息可包括应用程序的包名、包签名信息等。 [0057] wherein, the identification information may include the application name of the application package, including the signature information.

[0058] 具体地,第二Native应用程序可通过移动终端的操作系统提供的接口获取第一Native应用程序的标识信息。 [0058] In particular, the interface may provide a second Native application through the operating system of the mobile terminal acquires identification information of a first Native application.

[0059] S207,第二Native应用程序根据标识信息进行合法性校验。 [0059] S207, the second check legality Native application according to the identification information.

[0060] 在本发明的一个实施例中,第二Native应用程序可通过预设的应用程序白名单列表和该标识信息进行合法性校验。 [0060] In one embodiment of the present invention, a second application may be a list of Native and verify the legitimacy of the identification information through a preset whitelist application. 具体地,第二Native应用程序可判定第一Native应用程序的标识信息是否属于预设的应用程序白名单列表,如果属于,则第一Native应用程序通过合法性校验,否则,第一Native应用程序不通过合法性校验。 Specifically, the second Native application may determine identification information of the first application program belongs Native preset whitelist applications, if they are, then the first through the Native application legitimacy check Otherwise, the first application Native by the legality of the program does not check.

[0061] 其中,该应用程序的白名列表为预先建立的,包括已被评定为合法应用程序的标识信息列表。 [0061] where white name list of the application is pre-established, including the identification information has been assessed to the list of legitimate applications. 应用程序的评定结果可由权威第三方提供,或者通过对大量用户的评价结果进行统计分析获取,当然,也可通过其他方式获取,本发明不一一列举。 Evaluation results of the application by the authority provided by third parties, or statistical analysis acquired, of course, can also be obtained by other means, the present invention is not enumerated by the results of the evaluation of a large number of users.

[0062] S208,如果通过合法性校验,则第二Native应用程序根据登录会话数据完成登录。 [0062] S208, if by checking the legitimacy, the second Native application to complete the sign according to the login session data.

[0063]步骤 S206-S208 对应图3 中S6-S8。 [0063] Step S206-S208 in FIG. 3 corresponds to S6-S8.

[0064] 本发明实施例的登录状态的同步方法,第二Native应用程序在接收到登录会话数据之后,可进一步获取发送该登录会话数据的第一Native应用程序的标识信息,并根据该标识信息对第一Native应用程序进行合法性校验,并在通过合法性校验后根据该登录会话数据完成登录,由此在校验登录会话数据的来源合法后,才进行登录,能够防止因使用不合法的登录会话数据进行登录而造成的用户信息泄露、经济损失等,在方便、简化用户操作的同时,提高了用户账户及其他信息、资产的安全性,进一步提升了用户体验。 [0064] login state synchronization method of the present embodiment of the invention, the second Native application data after receiving the login session may further acquire the first identification information of the Native application transmits the login session data, and in accordance with the identification information Native application first check validity, and checks the validity of the login completion check according to the login session data, whereby the data source verification legitimate logon session, only log, can be prevented without the use information legitimate user login session log data caused by the leakage, financial losses, convenience, simplify user operations, while improving the security of user account information and other assets, and further enhance the user experience.

[0065] 为了实现上述实施例,本发明还提出一种登录状态的同步系统。 [0065] In order to achieve the above-described embodiments, the present invention also provides a system for synchronizing the login state.

[0066] 一种登录状态的同步系统,包括:移动终端,移动终端用于加载Web页面,并检测用户在Web页面是否完成登录,其中,Web页面具有触发模块,如果检测用户在Web页面已完成登录,则通过触发模块将用户的登录会话数据发送至预设本地网络端口;第一Native应用程序,第一Native应用程序用于从预设本地网络端口获取登录会话数据,并发送登录会话数据;以及第二Native应用程序,第二Native应用程序用于接收登录会话数据,并根据登录会话数据完成登录。 [0066] A login status synchronization system, comprising: a mobile terminal, a mobile terminal for loading a Web page, and detects whether the user completes the login Web page, wherein, the Web page has a trigger module, if a user is detected in the Web page has been completed login, the user's login session to a preset data transmission via the local network port trigger module; native a first application, the first native application login session for acquiring data from a preset local network port, and sends a login session data; and a second Native application, a second application program for receiving Native login session data, and completes the login session based on the login data.

[0067]图4为根据本发明一个实施例的登录状态的同步系统的结构示意图。 [0067] FIG. 4 is a schematic diagram of the configuration of the synchronization system login state to one embodiment of the present invention.

[0068] 如图4所示,根据本发明实施例的系统,包括:移动终端10、第一Native应用程序20和第二Native应用程序30。 [0068] As shown in FIG. 4, according to an embodiment of the system of the present invention, comprising: a mobile terminal 10, a first 20 and a second application Native Native application program 30.

[0069] 具体地,移动终端10移动终端用于加载Web页面,并检测用户在Web页面是否完成登录,其中,Web页面具有触发模块,如果检测用户在Web页面已完成登录,则通过触发模块将用户的登录会话数据发送至预设本地网络端口。 [0069] Specifically, the mobile terminal 10 a mobile terminal for loading a Web page, and detects whether the user completes the login Web page, wherein, the Web page has a trigger module, if the detected user registered in the Web page has been completed, the trigger module by the user's logon session data is sent to a preset local network port.

[0070] 在本发明的实施例中,移动终端10可在任何能够加载Web页面的应用程序中加载Web页面。 [0070] In an embodiment of the present invention, the mobile terminal 10 may load a Web page can be loaded in any application on the Web page. 举例来说,移动终端10可通过手机浏览器、QQ等应用程序加载Web页面。 For example, the mobile terminal 10 through the mobile browser, QQ and other applications load the Web page. 其中,Web页面具有触发模,块,触发模块可以是JS(Javascript,一种基于对象和事件驱动的客户端脚本语言)模块。 Which, Web pages have triggered mode, blocks, modules can be triggered JS (Javascript, client-side scripting language for object-based and event-driven) module. 触发模块用于当检测到用户在Web页面完成登录时,将用户的登录会话数据发送至预设本地网络端口。 Trigger module is used to detect when the user when the Web page to complete login, sends the user's logon session data to a preset local network port.

[0071] 更具体地,在本发明的一个实施例中,如果移动终端10检测用户在Web页面已完成登录,贝1J可通过触发模块将登录会话数据以(Http Hypertext transfer protocol,超文本传输协议)请求的方式发生至预设本地网络端口。 [0071] More specifically, in one embodiment of the present invention, if the mobile terminal 10 detects that the user has completed login Web page, shellfish 1J may login session data through the trigger module (Http Hypertext transfer protocol, Hypertext Transfer Protocol ) request to the occurrence of a predetermined manner the local network port.

[0072] 其中,登录会话数据可包括会话ID (Identity,身份标识码)和账户信息等。 [0072] wherein log data session may include a session ID (Identity, identification code) and account information.

[0073] 第一Native应用程序20用于从预设本地网络端口获取登录会话数据,并发送登录会话数据。 [0073] Native application 20 first login session for transmitting data from a preset local network port for login session data, and.

[0074] 第二Native应用程序30用于接收登录会话数据,并根据登录会话数据完成登录。 [0074] The second application program 30 for receiving Native login session data, and completes the login session based on the login data.

[0075] 在本发明的一个实施例中,第一Native应用程序20可通过内置的Http服务器侦听上述预设本地网络端口以获取该预设本地网络端口所接收到的登录会话数据。 [0075] In one embodiment of the invention, the first application program 20 may listen Native The preset local network port built-in Http server login session data for the predetermined local network port received.

[0076] 更具体地,在第一Native应用程序20启动后,可初始化其中内置的Http服务器,并通过该内置的Http服务器侦听该预设本地网络端口,以准备接收任何加载了Web页面的应用程序发送的包含登录会话数据Http请求。 [0076] More specifically, after the first Native application program 20 starts, which may be initialized built Http server, and the server through the built-in Http local network listen to the default port, ready to receive any of the Web page is loaded application Http request contains the login session data transmitted.

[0077] 其中,加载Web页面的应用程序可以是第一Native应用程序20,也可以是第一Native应用程序20所在移动终端中运行的其他应用程序。 [0077] wherein the load application Web page may be a first Native application 20, other applications may be a first mobile terminal 20 is located in the Native application running.

[0078] 在本发明的实施例中,第一Native应用程序20可通过其中内置的Http服务器通过广播或者轮播的方式向第二Native应用程序30所实现的特定接口发送请求。 [0078] In an embodiment of the present invention, the first through the Native application 20 built therein in Http server through a broadcast or a specific way rotation transmission request to the second Native Interface application 30 implemented. 其中,Http服务器所发送的请求中包括登录会话数据。 Wherein Http request sent by the server comprises a session login data. 从而第二Native应用程序30可接收到登录会话请求,并可根据该登录会话请求完成登录。 Native so that the second application 30 may receive a login session request, and complete the logon request according to the login session.

[0079] 应当理解,在本发明的实施例中,第一Native应用程序与第二Native应用程序可以是同一个应用程序,也可以是不同的应用程序。 [0079] It should be understood that in the embodiment of the present invention, the first and second application Native Native applications can be the same application, or may be different applications.

[0080] 本发明实施例的登录状态的同步系统,可检测用户在已加载的Web页面是否王完成登录,并在完成登录时,通过Web页面中的触发模块将用户的登录会话数据发送至预设本地网络端口,从而第一Native应用程序可从预设本地网络端口获取登录会话数据,并将登录会话数据发送至第二Native应用程序,以使第二Native应用程序根据登录会话数据完成登录,由此,实现了网页端的登录状态到Native应用程序中,用户只需在移动终端中加载的网页中完成一次登录,在该移动终端中Native应用程序中即可同步登录状态。 [0080] synchronization system login state embodiment of the present invention, can detect whether the user Wang completed log in the loaded Web page, and upon completion of the log, to send the user login session data to the pre through a Web page trigger module local network port is provided, so that the first native application can acquire data from a preset login session local network port, and the second data to the session log native application to the second application completes native log according to the login session data, thereby, a web client login state to the Native application, the user simply loads the page in a mobile terminal in a completed log, Native applications to sync signed in the mobile terminal.

[0081 ] 可选地,在本发明的一个实施例中,第一Native应用程序还用于在发送登录会话数据之前,获取与Web页面对应的第二Native应用程序。 [0081] Alternatively, in one embodiment of the present invention, the first Native application is further configured to logon session before sending data, the second acquired Native application program corresponding to the Web page. 具体地,可通过应用程序的标识信息(如应用程序的包名、签名信息等)获取与Web页面对应的第二Native应用程序。 Specifically, the second acquiring Native application through the Web page corresponding to the application identification information (e.g., an application package name, and signature information, etc.). 也就是说,当该Web页面是由第二Native应用程序加载时,在第一Native应用程序将登录会话数据发送至加载该Web页面的Native应用程序,从而能够将Web端的登录状态同步到加载该Web页面的应用程序中,无需用户再次在应用程序中登录,减少了用户的操作。 That is, when the second Web page is loaded by the Native application in a first Native application login session data to loading Native applications for the Web page, the Web terminal can be synchronized to load the login state application Web page, without requiring the user to log in again in the application, reducing the user's operation.

[0082] 进一步地,在本发明的另一个实施例中,第二Native应用程序属于预设的应用程序名单列表,第一Native应用程序向预设的应用程序名单列表中的Native应用程序均发送登录会话数据。 [0082] Further, in another embodiment of the present invention, the second Native applications are in the preset list list of applications, the first Native applications are transmitted to a preset list of Native application list applications login session data. 其中,该应用程序名单列表是预先根据一些规则生成的。 Among them, the application list is a list in advance, according to some rules generated. 举例来说,应用程序名单列表中的应用程序可以是同一互联网公司或者同一开发者开发或发布的应用程序。 For example, the application list application list may be the same company or the same Internet developers to develop or publish applications. 从而第一Native应用程序可根据该应用程序名单列表将登录会话数据发送至多个Native应用程序,以使多个Native应用程序均能够根据该登录会话数据登录,从而免去用户手动登录的操作,大大减少了用户的操作,进一步提升了用户的使用体验。 Native that the first application may send a list of logon session data to a plurality of Native applications, so that the plurality of Native applications are able to log in to the registration session data list according to the application, thereby eliminating manual user login operation, greatly reducing the user's operation, to further enhance the user experience.

[0083] 在本发明的另一个实施例中,第二Native应用程序还用于在第一Native应用程序发送登录会话数据之后,获取第一Native应用程序的标识信息,并根据标识信息进行合法性校验,如果通过合法性校验,则根据登录会话数据完成登录。 After [0083] In another embodiment of the present invention, a second application also Native login session for transmitting data in the first Native application, obtain identification information of a first Native application according to the identification information and legality check, if by check legality, according to the login session to complete the login data.

[0084] 其中,应用程序的标识信息可包括应用程序的包名、包签名信息等。 [0084] wherein, the identification information may include the application name of the application package, including the signature information.

[0085] 具体地,第二Native应用程序可通过移动终端的操作系统提供的接口获取第一Native应用程序的标识信息。 [0085] In particular, the interface may provide a second Native application through the operating system of the mobile terminal acquires identification information of a first Native application.

[0086] 在本发明的一个实施例中,第二Native应用程序可通过预设的应用程序白名单列表和该标识信息进行合法性校验。 [0086] In one embodiment of the present invention, a second application may be a list of Native and verify the legitimacy of the identification information through a preset whitelist application. 具体地,第二Native应用程序可判定第一Native应用程序的标识信息是否属于预设的应用程序白名单列表,如果属于,则第一Native应用程序通过合法性校验,否则,第一Native应用程序不通过合法性校验。 Specifically, the second Native application may determine identification information of the first application program belongs Native preset whitelist applications, if they are, then the first through the Native application legitimacy check Otherwise, the first application Native by the legality of the program does not check.

[0087] 其中,该应用程序的白名列表为预先建立的,包括已被评定为合法应用程序的标识信息列表。 [0087] where white name list of the application is pre-established, including the identification information has been assessed to the list of legitimate applications. 应用程序的评定结果可由权威第三方提供,或者通过对大量用户的评价结果进行统计分析获取,当然,也可通过其他方式获取,本发明不一一列举。 Evaluation results of the application by the authority provided by third parties, or statistical analysis acquired, of course, can also be obtained by other means, the present invention is not enumerated by the results of the evaluation of a large number of users.

[0088] 由此,第二Native应用程序在接收到登录会话数据之后,可进一步获取发送该登录会话数据的第一Native应用程序的标识信息,并根据该标识信息对第一Native应用程序进行合法性校验,并在通过合法性校验后根据该登录会话数据完成登录,由此在校验登录会话数据的来源合法后,才进行登录,能够防止因使用不合法的登录会话数据进行登录而造成的用户信息泄露、经济损失等,在方便、简化用户操作的同时,提高了用户账户及其他信息、资产的安全性,进一步提升了用户体验。 [0088] Accordingly, the second Native application data after receiving the login session, may further obtain identification information of the transmission data of the first login session Native application and the first legitimate Native application according to the identification information check, and after completion by checking the legality of data according to the login session login, whereby after checking the source of data legitimate logon session, only log in, can prevent the use of illegal login session and log data user information leak caused economic losses, convenience, simplify user operations, while improving the security of user account information and other assets, and further enhance the user experience.

[0089] 流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。 [0089] In the flowchart in any process or method or otherwise described in this description may be understood as representing modules comprises one or more steps for implementing specific logical functions or processes executable instructions, fragment or portion, and the scope of the preferred embodiment of the present invention includes other implementations, which may be shown or discussed in order not press, comprising a substantially simultaneous manner or in reverse order, depending upon the functionality to perform the functions involved it should be understood that embodiments skilled in the art of the present invention.

[0090] 在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。 [0090] or represents a logical and / or steps described herein in other ways, for example, may be considered as a sequencing table executable instructions for implementing logical functions in the flowcharts, can be embodied in any computer-readable medium to instruction execution system, apparatus, or device (e.g., computer-based system, processor-containing system, or other system may be performed from instruction fetch apparatus, or device and execute the instructions) using, instruction execution, or a combination of these system, apparatus, or device used. 就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。 For purposes of this specification, a "computer-readable medium" can be any means can comprise, store, communicate, propagate, or transport the program for instruction execution system, apparatus, or device, or with the instruction execution system, apparatus, or device and used. 计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPR0M或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。 More specific examples (a non exhaustive list) of the computer-readable medium comprising: an electrical connection (electronic device) having one or more wires, a portable computer diskette cartridge (magnetic device), a random access memory (RAM), a read only memory (ROM), erasable read-only memory edit (EPR0M or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). 另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。 Further, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as can, for example paper or other medium by optical scanning, and then edited, if necessary, interpreted, or otherwise suitable to be processed using the program obtained electronically, and then stored in a computer memory.

[0091] 应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。 [0091] It should be understood that various portions of the present invention may be implemented in hardware, software, firmware or a combination thereof to achieve. 在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。 In the above-described embodiment, a plurality of steps or methods may be implemented in software or firmware and executed by a suitable system executing instructions stored in a memory with. 例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。 For example, if implemented in hardware, as in another embodiment, the present technique may be any one of the following well-known in the art, or their combination thereof: a logic gate circuit for implementing logic functions upon data signals discrete logic circuits having appropriate combinational logic gate circuit ASIC, a programmable gate array (PGA), a field programmable gate array (FPGA) and the like.

[0092] 本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。 [0092] skilled in the art can understand that ordinary method embodiments that all or part of the steps may be by a program instructing relevant hardware, the program may be stored in a computer-readable storage medium, one of the steps in the implementation of the embodiment of the method includes the program, or combinations thereof.

[0093] 此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。 [0093] In addition, the functional units may be integrated in one processing module, or may be physically separate units exist, may be two or more units are integrated in a module in various embodiments of the present invention. 上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。 The integrated module may be implemented in the form of hardware, software functional modules may also be implemented. 所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。 If the integrated module is implemented as an independent product sold or used in the form of a software functional module, it may be stored in a computer-readable storage medium.

[0094] 上述提到的存储介质可以是只读存储器,磁盘或光盘等。 [0094] The storage medium may be a read-only memory, magnetic or optical disk.

[0095] 在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。 [0095] In the description of the present specification, reference to the term "one embodiment," "some embodiments", "an example", "a specific example", or "some examples" means that a description of the exemplary embodiment or embodiments described a particular feature, structure, material, or characteristic is included in at least one embodiment of the present invention, embodiments or examples. 在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。 In the present specification, a schematic representation of the above terms necessarily referring to the same embodiment or example. 而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。 Furthermore, the particular features, structures, materials, or characteristics described embodiments or examples may be at any one or more in a proper manner.

[0096] 尽管已经示出和描述了本发明的实施例,本领域的普通技术人员可以理解:在不脱离本发明的原理和宗旨的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由权利要求及其等同限定。 [0096] While there has been illustrated and described embodiments of the present invention, those of ordinary skill in the art can be appreciated: that various changes may be made to these embodiments without departing from the principles and spirit of the invention, modifications, substitutions and modifications, the scope of the invention defined by the appended claims and their equivalents.

Claims (12)

  1. 1.一种登录状态的同步方法,其特征在于,包括以下步骤: 加载Web页面,其中,所述Web页面具有触发模块; 检测用户在所述Web页面是否完成登录; 如果检测所述用户在所述Web页面已完成登录,则通过所述触发模块将所述用户的登录会话数据发送至预设本地网络端口; 第一Native应用程序从所述预设本地网络端口获取所述登录会话数据;以及所述第一Native应用程序将所述登录会话数据发送至所述第二Native应用程序,以使所述第二Native应用程序根据所述登录会话数据完成登录。 1. A method for synchronizing login state, characterized in that it comprises the steps of: loading a Web page, wherein the Web page has a trigger module; detecting whether the user is registered in the Web page is completed; if it is detected that the user said Web page has been completed log, by the trigger module is the user's login session data to a preset local network port; a first native application to get the data from the preset login session local network port; and the first application of the Native login session Native data to the second application to the second application program is completed Native log data from the login session.
  2. 2.如权利要求1所述的登录状态的同步方法,其特征在于,在所述第一 Native应用程序将所述登录会话数据发送至所述第二Native应用程序之前,还包括: 所述第一Native应用程序获取与所述Web页面对应的所述第二Native应用程序。 2. The synchronization method according to claim 1 login state, wherein the first Native application session data in the log before the second application is sent to the Native, further comprising: a first a Native application and the application obtains the Web page corresponding to a second Native.
  3. 3.如权利要求2所述的登录状态的同步方法,其特征在于,所述第二 Native应用程序属于预设的应用程序名单列表,所述第一Native应用程序向所述预设的应用程序名单列表中的Native应用程序均发送所述登录会话数据。 The synchronization method as claimed in claim 2 login state of the first Native application program to the preset application, characterized in that said second Native application is within the preset list list of applications, Native applications in the roster list are sending the login session data.
  4. 4.如权利要求1所述的登录状态的同步方法,其特征在于,所述登录会话数据包括会话ID和帐户信息。 The synchronization method of claim 1 login state as claimed in claim 4, wherein the data session comprises a session login ID and account information.
  5. 5.如权利要求1所述的登录状态的同步方法,其特征在于,在所述第一 Native应用程序将所述登录会话数据发送至所述第二Native应用程序之后,还包括: 所述第二Native应用程序获取所述第一Native应用程序的标识信息; 所述第二Native应用程序根据所述标识信息进行合法性校验; 如果通过所述合法性校验,则所述第二Native应用程序根据所述登录会话数据完成登录。 5. After the synchronization method according to claim 1 login state, wherein the first application of the Native login session data to the second Native application, further comprising: a first two Native application obtains the identification information of the first Native application; Native application of the second validity check according to the identification information; if by checking the legitimacy, then the second application Native the login procedure is completed the login session data.
  6. 6.如权利要求1所述的登录状态的同步方法,其特征在于,所述第一 Native应用程序和所述第二Native应用程序属于同一个应用程序。 6. The synchronization method according to claim 1 login state, wherein the first Native Native application and the second application program belong to the same application.
  7. 7.一种登录状态的同步系统,其特征在于,包括: 移动终端,所述移动终端用于加载Web页面,并检测用户在所述Web页面是否完成登录,其中,所述Web页面具有触发模块,如果检测所述用户在所述Web页面已完成登录,则通过所述触发模块将所述用户的登录会话数据发送至预设本地网络端口; 第一Native应用程序,所述第一Native应用程序用于从所述预设本地网络端口获取所述登录会话数据,并发送所述登录会话数据;以及第二Native应用程序,所述第二Native应用程序用于接收所述登录会话数据,并根据所述登录会话数据完成登录。 A synchronization system login status, characterized by comprising: a mobile terminal, the mobile terminal for loading a Web page, and detects whether the user logs in the Web page is completed, wherein the Web page has a trigger module , if it is detected that the user has logged in to the Web page is completed, the trigger module through the user's login session data to a preset local network port; a first native application program, the application program first native from the preset for acquiring the local network port login session data, and transmits the login session data; and a second native application, the second application program for native receiving the login session data, and in accordance with the login session log data is completed.
  8. 8.如权利要求7所述的登录状态的同步系统,其特征在于, 所述第一Native应用程序还用于在发送所述登录会话数据之前,获取与所述Web页面对应的所述第二Native应用程序。 8. The login state synchronization system according to claim 7, wherein said first application is further configured to Native before transmitting the session log data, the acquired Web page corresponding to the second Native applications.
  9. 9.如权利要求8所述的登录状态的同步系统,其特征在于,所述第二 Native应用程序属于预设的应用程序名单列表,所述第一Native应用程序向所述预设的应用程序名单列表中的Native应用程序均发送所述登录会话数据。 9. The synchronization system of claim 8 login state of the first application program Native application to the preset claim, wherein said second Native application is within the preset list list of applications, Native applications in the roster list are sending the login session data.
  10. 10.如权利要求7所述的登录状态的同步系统,其特征在于,所述登录会话数据包括会话ID和帐户信息。 10. The synchronization system login state according to claim 7, wherein the data session comprises a session login ID and account information.
  11. 11.如权利要求7所述的登录状态的同步系统,其特征在于, 所述第二Native应用程序还用于在所述第一Native应用程序发送所述登录会话数据之后,获取所述第一Native应用程序的标识信息,并根据所述标识信息进行合法性校验,如果通过所述合法性校验,则根据所述登录会话数据完成登录。 11. After the login state of the synchronization system as claimed in claim 7, wherein said second Native further configured to send the application program in the first Native application login session data, acquires the first Native application identification information and validity check according to the identification information, if the legitimacy check by, the log is completed according to the login session data.
  12. 12.如权利要求7所述的登录状态的同步系统,其特征在于,所述第一Native应用程序和所述第二Native应用程序属于同一个应用程序。 12. The synchronization system login status of claim 7, wherein said first Native Native application and the second application program belong to the same application.
CN 201410778650 2014-12-15 2014-12-15 Synchronization method and system for logging status CN104580380A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201410778650 CN104580380A (en) 2014-12-15 2014-12-15 Synchronization method and system for logging status

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201410778650 CN104580380A (en) 2014-12-15 2014-12-15 Synchronization method and system for logging status

Publications (1)

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

Family

ID=53095538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201410778650 CN104580380A (en) 2014-12-15 2014-12-15 Synchronization method and system for logging status

Country Status (1)

Country Link
CN (1) CN104580380A (en)

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)

Similar Documents

Publication Publication Date Title
CN101964025A (en) XSS (Cross Site Scripting) detection method and device
US20130014243A1 (en) Cross Domain Single Sign On
CN102195978A (en) Software distribution deployment method and system
CN103095681A (en) Loophole detection method and device
US9106642B1 (en) Synchronizing authentication sessions between applications
CN102034041A (en) Method, device and system for verifying binding of data card and mobile hosts
CN102591705A (en) Open platform agent access method and open platform agent access device
US20140019957A1 (en) Method, apparatus, and system for sharing software among terminals
CN103152400A (en) Method and system for logging in through mobile terminal and cloud server
US20110107092A1 (en) Performance based authentication method and apparatus for secure communication
CN104052818A (en) Version upgrade method and device for mobile terminal
CN103401836A (en) Method and device used for judging whether webpage is hijacked by ISP (internet service provider) or not
CN103259795A (en) Method for executing automatic register and login, mobile terminal and server
CN102469092A (en) Method and system for realizing safety protection mechanism in mobile phone application
US20140052986A1 (en) Information handling device, information output device, and recording medium
CN103368913A (en) Account login method, apparatus and system, and network server
CN103246501A (en) Method and client-side for sharing application
US20140089662A1 (en) Systems and methods for sharing files among multiple terminals
CN102136964A (en) Website testing method and system
CN104092811A (en) Mobile terminal information download method, system, terminal device and server
US8655993B1 (en) Configuring networks in client computing devices
CN103870752A (en) Method and device for detecting Flash XSS (Cross Site Script) vulnerabilities and equipment
CN103647746A (en) User login method, device and system
US20110246965A1 (en) Correcting document generation for policy compliance
CN104239206A (en) Webpage test method and device

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination