CN104348893A - Data synchronization method and device - Google Patents

Data synchronization method and device Download PDF

Info

Publication number
CN104348893A
CN104348893A CN201310347074.8A CN201310347074A CN104348893A CN 104348893 A CN104348893 A CN 104348893A CN 201310347074 A CN201310347074 A CN 201310347074A CN 104348893 A CN104348893 A CN 104348893A
Authority
CN
China
Prior art keywords
browser
data
user
arbitrary
authorization information
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
CN201310347074.8A
Other languages
Chinese (zh)
Other versions
CN104348893B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310347074.8A priority Critical patent/CN104348893B/en
Publication of CN104348893A publication Critical patent/CN104348893A/en
Application granted granted Critical
Publication of CN104348893B publication Critical patent/CN104348893B/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/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • 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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web

Landscapes

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

Abstract

The invention discloses a data synchronization method and device. The method is applied to electronic equipment and comprises the following steps that a first browser receives first verification information input during the log-in of any one user, whether second verification information used for any one user to log in a second browser is included in the first verification information or not is detected, and a first detection result is obtained; if the first detection result shows that the second verification information is included in the first verification information, a synchronous data obtaining request is generated according to the second verification information, and in addition, the synchronous data obtaining request is sent to the second browser, so that the second browser obtains stored first data corresponding to any one user according to the synchronous data obtaining request, and the first data is returned to the first browser; the first browser synchronizes the received first data to a database. When the method and the device provided by the invention are applied, the data of the same user in different browsers can be synchronized into the same browser, so that the browser compatibility can be realized.

Description

A kind of method of data syn-chronization and device
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of method and device of data syn-chronization.
Background technology
Browser refers to can the html file content of display web page server or file system, and allows a kind of software of user and these file interactions.Web browser mainly through http protocol and web page server alternately and obtain webpage, specified by URL, and file format is generally HTML, and indicated in http protocol by MIME by these webpages.Can comprise multiple document in a webpage, each document obtains from server respectively.Form widely in addition to html supported by most browser itself, the picture formats such as such as JPEG, PNG, GIF, and can expand the numerous plug-in unit (plug-ins) of support.In addition, many browsers also support other URL type and corresponding agreement thereof, the encryption version as FTP, Gopher, HTTPS(HTTP agreement).HTTP content type and URL protocol specification allow Web page maker embedded images, animation, video, sound, Streaming Media etc. in webpage.Web browser common in PC comprises the Safari of Firefox, Apple of Internet Explorer, Mozilla, Opera, Google Chrome, GreenBrowser browser, 360 secure browsers, search dog high speed browser, Tengxun TT, proud trip browser, Baidu's browser, Tencent QQ browser etc., browser is the client-side program the most often used.
There is provided personalized service in order to more intelligentized for different user, so a lot of browser provides account system, such user then provides the identity of relative " truly ".Utilize the identity of this " truly ", browser then can more accurately for user carries out customized service.Account system is utilize high in the clouds to store identity information in essence, no longer relies on client and judges coarse information.
The user of mobile Internet and conventional internet has a sizable part to be overlapping, and how the service on PC perfectly being moved on mobile device, account system is most important.Those have the company of powerful account system on the net at legacy interconnect, and promoting client on the net at mobile interchange can be easily a lot.The effect of account system is the equipment of comprehensive covering user, during the equipment access making user never same, can obtain consistent personalized service.
Account system compares mobile device, is better Identity Provider: in user's stickiness and data mobility, all have better effect.
But present inventor is in the process realizing invention technical scheme in the embodiment of the present application, find that above-mentioned technology at least exists following technical problem:
Because the renewal speed of browser is very fast, and user many times can use different browsers along with the change of demands of individuals.Change the situation of different browsers use for user, the mass data that user can be made to store in previous browser is lost, and new browser also must could determine the every data using user by Data Collection for a long time.Thus the data flow general character between browser can be caused poor, and the problem that the data compatibility that can there is each browser is not high.
Summary of the invention
The invention provides a kind of method and device of data syn-chronization, when in method and apparatus solution prior art provided by the present invention, user upgrades browser, the technical problem that the mass data that user can be made to store in previous browser is lost.
The invention provides a kind of method of data syn-chronization, the method is applied in an electronic equipment, and the method comprises:
First browser receives the first authorization information of input when arbitrary user logs in, and detects in described first authorization information and whether comprises described arbitrary user for logging in the second authorization information of the second browser, obtain the first testing result;
If the first testing result is yes, then generate synchrodata according to described second authorization information and obtain request, and described synchrodata acquisition request is sent to described second browser, make the second browser obtain first data corresponding with described arbitrary user of acquisition request storage according to described synchrodata, described first data are returned described first browser;
First browser by described first data syn-chronization that receives to database.
The scheme more optimized, the first browser, by before described first data syn-chronization to database that receives, also comprises further:
Determine that whether described second browser is identical with the data encapsulation form of the first browser, if not identical, then described first data are converted to preset data form.
The scheme more optimized, the first browser will receive described first data syn-chronization and comprise to database:
Detect in described database and whether store second data corresponding with described arbitrary user, if had, then described first data and described second data are merged, and the data after merging are stored into database.
The scheme more optimized, the method also comprises:
When receiving user and store the first request of arbitrary data, then detect in described first request and whether comprise described arbitrary data syn-chronization is identified to the second browser first;
If described first request comprises the first mark, then described first data are sent to the second browser, make the second browser by the second authorization information corresponding stored of described first data and described user.
The scheme more optimized, before described first data are sent to the second browser, comprises further:
Determine that whether described second browser is identical with the data encapsulation form of the first browser, if not identical, then described first data are encapsulated according to the data encapsulation form that described second browses.
The scheme more optimized, described second browser is one or more.
Also provide a kind of device of data syn-chronization according to said method the present invention, the method is applied in an electronic equipment, and this device comprises:
Authentication module, for receiving the first authorization information of input when arbitrary user logs in, detecting in described first authorization information and whether comprising described arbitrary user for logging in the second authorization information of the second browser, obtaining the first testing result;
Synchrodata download module, if the first testing result is yes, request is obtained for generating synchrodata according to described second authorization information, and described synchrodata acquisition request is sent to described second browser, make the second browser obtain first data corresponding with described arbitrary user of acquisition request storage according to described synchrodata, described first data are returned described first browser;
Synchronization module, for described first data syn-chronization that will receive to database.
The scheme more optimized, this device also comprises:
Described first data, for determining that whether described second browser is identical with the data encapsulation form of the first browser, if not identical, are then converted to preset data form by data conversion module.
The scheme more optimized, whether synchronization module also stores second data corresponding with described arbitrary user for detecting in described database, if had, then described first data and described second data is merged, and the data after merging are stored into database.
The scheme more optimized, this device also comprises:
Whether transmission module in synchrodata, receives for working as the first request that user stores arbitrary data, then detect in described first request to comprise to be identified to the second browser first by described arbitrary data syn-chronization; If described first request comprises the first mark, then described first data are sent to the second browser, make the second browser by the second authorization information corresponding stored of described first data and described user.
The scheme more optimized, this device also comprises:
Described first data, for determining that whether described second browser is identical with the data encapsulation form of the first browser, if not identical, are then encapsulated according to the data encapsulation form that described second browses by data encapsulation module.
One or two in technique scheme, at least has following technique effect:
The method and apparatus that the embodiment of the present invention provides, if arbitrary user has applied for different accounts in different browsers, when the first browser that this arbitrary user utilizes the application to provide carry out browser log in time, then can input multiple accounts (i.e. authorization information) of applying in different browsers simultaneously.When the account that the authorization information received comprises user and applies in multiple browser determined by the first browser, then different browsers account can be sent to corresponding browser server, and undertaken after different browsers logs in by described account, obtain the data that described arbitrary user stores in the corresponding browser of different account, the first browser is by the data syn-chronization that gets to self database.By the same user of said method at the data syn-chronization of different browsers in same browser, thus provide the compatibility of browser.
Because carry out synchronous in the data that different browsers stores for same user, so provide in browser the utilance storing data, avoid the waste of data redundancy to the memory space of browser simultaneously.
In addition, when the synchrodata in different browsers being synchronized to the server of a browser in the embodiment of the present invention, also the multiple data got are carried out the merging of identical data, after the method that the embodiment of the present invention provides carries out data merging, the redundancy storing data can be reduced, reduce redundant data to the waste of memory space.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method for a kind of data syn-chronization in the embodiment of the present invention;
Fig. 2 is the method flow diagram that in the method for a kind of data syn-chronization of the embodiment of the present invention, data syn-chronization is uploaded;
Fig. 3 is the result schematic diagram of the device of a kind of data syn-chronization of the embodiment of the present invention.
Embodiment
There is provided personalized service in order to more intelligentized for different user, so a lot of browser provides account system, such user then provides the identity of relative " truly ".Utilize the identity of this " truly ", browser then can more accurately for user carries out customized service.Account system is utilize high in the clouds to store identity information in essence, no longer relies on client and judges coarse information.Because each company is when developing browser, there are the function of some personalizations and technical barrier in capital, if so arbitrary user has applied for corresponding account in a certain browser in the account system provided in prior art, this account just can only use for the browser of application account.But because the renewal speed of browser is very fast, and user many times can use different browsers along with the change of demands of individuals.Change the situation of browser for user, then the mass data that user can be made to store in previous browser is lost, and new browser also must could determine the every data using user by Data Collection for a long time.Thus the data flow general character between browser can be caused poor, and the problem that the data compatibility that can there is each browser is not high.
A kind of method of data syn-chronization is provided for the problems referred to above the application, the method is applied in an electronic equipment, the method comprises: the first browser receives the first authorization information of input when arbitrary user logs in, detect in described first authorization information and whether comprise described arbitrary user for logging in the second authorization information of the second browser, obtain the first testing result; If the first testing result is yes, then generate synchrodata according to described second authorization information and obtain request, and described synchrodata acquisition request is sent to described second browser, make the second browser obtain first data corresponding with described arbitrary user of acquisition request storage according to described synchrodata, described first data are returned described first browser; First browser by described first data syn-chronization that receives to database.
In scheme provided by the present invention, if arbitrary user has applied for different accounts in different browsers, when the first browser that this arbitrary user utilizes the application to provide carry out browser log in time, then can input multiple accounts (i.e. authorization information) of applying in different browsers simultaneously.When the account that the authorization information received comprises user and applies in multiple browser determined by the first browser, then different browsers account can be sent to corresponding browser server, and undertaken after different browsers logs in by described account, obtain the data that described arbitrary user stores in the corresponding browser of different account, the first browser is by the data syn-chronization that gets to self database.By the same user of said method at the data syn-chronization of different browsers in same browser, thus provide the compatibility of browser.
Because carry out synchronous in the data that different browsers stores for same user, so provide in browser the utilance storing data, avoid the waste of data redundancy to the memory space of browser simultaneously.
In order to better understand technique scheme, below in conjunction with Figure of description and concrete execution mode, technique scheme is described in detail.
As shown in Figure 1, the embodiment of the present invention provides a kind of method of data syn-chronization, is described in detail to the specific embodiment of the present invention below in conjunction with Figure of description:
Method provided by the present invention is applied in an electronic equipment, and is provided with the first browser in this electronic equipment, when user use the first browser carry out web page contents browse time, the method comprises:
Step 101, the first browser receives the first authorization information of input when arbitrary user logs in, and detects in described first authorization information and whether comprises described arbitrary user for logging in the second authorization information of the second browser, obtain the first testing result;
In embodiments of the present invention, when user used the second browser before use first browser, and user has applied for the second account in the second browser, when user at use the first browser time applied for the first account.In the prior art, if user uses the data stored in the second browser, then correspondingly need installation second browser, and just can get the data stored in the second browser after logging in the second browser by the second account.
The first browser provided in the embodiment of the present invention can receive multiple browser accounts of user's input simultaneously, and namely user is when carrying out browser and logging in, and directly can input the first account and the second account in the login page of the first browser.
In the particular embodiment, can provide multiple input frame in the login page of the first browser, user can input the login account of different browsers in the multiple input frames provided.
Step 102, if the first testing result is yes, then generate synchrodata according to described second authorization information and obtain request, and described synchrodata acquisition request is sent to described second browser, make the second browser obtain first data corresponding with described arbitrary user of acquisition request storage according to described synchrodata, described first data are returned described first browser;
In this embodiment, if detect that authorization information that user inputs comprises the account of the second browser, then from described authorization information, account information corresponding to the second browser is extracted.
Because the second browser can be one or more, when the second browser comprises multiple, then the corresponding account obtained from described authorization information corresponding to multiple second browser.And according to the relevant information of the second browser, different encapsulation is carried out to the account of different browsers and produce multiple synchrodata and obtain request.And the data synchronization request of corresponding different browsers is sent to the server of different browsers, obtain the data that user has preserved after making the server of different browsers get described data.
Step 103, the first browser by described first data syn-chronization that receives to database.
Because same user has likely applied for account and has stored data in multiple browser, so in embodiments of the present invention, time loss during in order to save data space and reduce browser searches, then can after getting the data that same user stores at different browsers, after the data got being merged, stores synchronized is to database.
Although the content that user browsed in different time or different places has difference, but because the hobby of user and custom are so can there is certain redundancy in the data that user stores in different browsers, so in embodiments of the present invention, by when the data syn-chronization that gets is in database, described first browser will receive described first data syn-chronization and comprise to database:
Detect in described database and whether store second data corresponding with described arbitrary user, if had, then described first data and described second data are merged, and the data after merging are stored into database.
Further, when the first data and described second data being merged in this embodiment, also the multiple data got are carried out the merging of identical data, after the method that the embodiment of the present invention provides carries out data merging, the redundancy storing data can be reduced, reduce redundant data to the waste of memory space.
Because form widely in addition to html supported by most browser itself, the picture formats such as such as JPEG, PNG, GIF, and the numerous plug-in unit (plug-ins) of support can be expanded.In addition, many browsers also support other URL type and corresponding agreement thereof, the encryption version as FTP, Gopher, HTTPS(HTTP agreement).So in order to the synchrodata that the first browser is sent to the second browser obtains request can by the second browser identification, and the first data received can use self, then the method that the embodiment of the present invention provides also comprises:
At the first browser by before described first data syn-chronization to database that receives, also comprise further:
Determine that whether described second browser is identical with the data encapsulation form of the first browser, if not identical, then described first data are converted to preset data form.
In embodiments of the present invention, described preset format can be the data format of the first browser, and described preset format also can be the data format that browser can be general.
To in a specific browser in above-mentioned steps by the data syn-chronization of different browsers, in addition because user use a certain browser time, also likely need to be stored in the data syn-chronization of current browser to other browsers, so the method that the method that the embodiment of the present invention provides also provides synchrodata to upload, specifically comprise step (as shown in Figure 2):
Whether step 201, when receiving user and store the first request of arbitrary data, then detect in described first request and comprise and being identified to the second browser first by described arbitrary data syn-chronization;
In this embodiment, when user stores a certain data in the first browser, browser display one information, prompting user is the need of data syn-chronization second browser that will store.If determine that user needs synchronous described data, then add first and be identified in described data, so the first mark needs synchronous server for indicating described data.
Described first data if described first request comprises the first mark, are then sent to the second browser, make the second browser by the second authorization information corresponding stored of described first data and described user by step 202.
Further, because form widely in addition to html supported by most browser itself, the picture formats such as such as JPEG, PNG, GIF, and the numerous plug-in unit (plug-ins) of support can be expanded.In addition, many browsers also support other URL type and corresponding agreement thereof, the encryption version as FTP, Gopher, HTTPS(HTTP agreement).So in order to make the first browser to the second browser send arbitrary can by the second browser identification, then before described first data being sent to the second browser in the method that provides of the embodiment of the present invention, comprise further:
Determine that whether described second browser is identical with the data encapsulation form of the first browser, if not identical, then described first data are encapsulated according to the data encapsulation form that described second browses.
Data synchronous between first browser and the second browser in embodiments of the present invention comprise browser this locality and store the data stored with server end.
Its real data both can store in browser this locality, also can store at server end.
Browser end can preserve some data, directly obtains from this locality when needs, and sessionStorage, localStorage and cookie are stored in local data by browser.
Server end also can preserve all data of all users, but when needing, browser will to server request data.
Server end can preserve the persistant data of user, as database and cloud store, the mass data of user is kept at server end.
Server end also can preserve the interim conversation data of user.The session mechanism of server end, as the session object of jsp, data are preserved on the server.In realization, only need between server and browser to transmit session id, server finds the session object of respective user according to session id.Session data is only effective within a period of time, and this time is exactly the session term of validity that server end is arranged.
In scheme provided by the present invention, if arbitrary user has applied for different accounts in different browsers, when the first browser that this arbitrary user utilizes the application to provide carry out browser log in time, then can input multiple accounts (i.e. authorization information) of applying in different browsers simultaneously.When the account that the authorization information received comprises user and applies in multiple browser determined by the first browser, then different browsers account can be sent to corresponding browser server, and undertaken after different browsers logs in by described account, obtain the data that described arbitrary user stores in the corresponding browser of different account, the first browser is by the data syn-chronization that gets to self database.By the same user of said method at the data syn-chronization of different browsers in same browser, thus provide the compatibility of browser.
Because carry out synchronous in the data that different browsers stores for same user, so provide in browser the utilance storing data, avoid the waste of data redundancy to the memory space of browser simultaneously.
In addition, when the synchrodata in different browsers being synchronized to the server of a browser in the embodiment of the present invention, also the multiple data got are carried out the merging of identical data, after the method that the embodiment of the present invention provides carries out data merging, the redundancy storing data can be reduced, reduce redundant data to the waste of memory space.
When the application that a certain user is corresponding in two different browsers (browser a and browser b) two accounts (account a and account b), user by a browser (such as: when browser a) logs in, if also need to obtain some data (downloading process of synchrodata) stored in another browser (browser b), then corresponding realization flow is:
User inputs account and account b in browser a, and browser is verified account a after receiving account a and account b.If account a is verified, then corresponding for account a is sent to service a corresponding to browser a; Because browser a also receives account b, so also need the server b determining the browser b that account b is corresponding further, and account b is sent to server b.
Server a and server b is by data feedback corresponding for account a and account b to browser a, and the data that server a and server b returns merge by browser a.
Further, if time user uses browser a, some data may be stored, if user needs the upload procedure being synchronized to browser b(synchrodata corresponding for these data), then corresponding implementation procedure is:
Browser a, when storing data, determines whether comprise a sync tag in data to be stored, comprise the account b of browser b in this sync tag.Because include account a and account b in synchrodata, so system will log in different servers by account a and account b, and synchrodata is stored into account a and account b corresponding server a and server b.
As shown in Figure 3, also provide a kind of device of data syn-chronization according to said method the present invention, the method is applied in an electronic equipment, and this device comprises:
Authentication module 301, for receiving the first authorization information of input when arbitrary user logs in, detecting in described first authorization information and whether comprising described arbitrary user for logging in the second authorization information of the second browser, obtaining the first testing result;
Synchrodata download module 302, if the first testing result is yes, request is obtained for generating synchrodata according to described second authorization information, and described synchrodata acquisition request is sent to described second browser, make the second browser obtain first data corresponding with described arbitrary user of acquisition request storage according to described synchrodata, described first data are returned described first browser;
Synchronization module 303, for described first data syn-chronization that will receive to database.
In addition, whether synchronization module 303 also stores second data corresponding with described arbitrary user for detecting in described database, if had, then described first data and described second data is merged, and the data after merging are stored into database.
Because form widely in addition to html supported by most browser itself, the picture formats such as such as JPEG, PNG, GIF, and the numerous plug-in unit (plug-ins) of support can be expanded.In addition, many browsers also support other URL type and corresponding agreement thereof, the encryption version as FTP, Gopher, HTTPS(HTTP agreement).So in order to the synchrodata that the first browser is sent to the second browser obtains request can by the second browser identification, and the first data received can use self, then the device that the embodiment of the present invention provides also comprises:
Described first data, for determining that whether described second browser is identical with the data encapsulation form of the first browser, if not identical, are then converted to preset data form by data conversion module 304.
To in a specific browser in above-mentioned functions module by the data syn-chronization of different browsers, in addition because user use a certain browser time, also likely need to be stored in the data syn-chronization of current browser to other browsers, so the functional module that the device that the embodiment of the present invention provides also provides synchrodata to upload, then this device also comprises:
Whether transmission module 305 in synchrodata, receives for working as the first request that user stores arbitrary data, then detect in described first request to comprise to be identified to the second browser first by described arbitrary data syn-chronization; If described first request comprises the first mark, then described first data are sent to the second browser, make the second browser by the second authorization information corresponding stored of described first data and described user.
Further, because form widely in addition to html supported by most browser itself, the picture formats such as such as JPEG, PNG, GIF, and the numerous plug-in unit (plug-ins) of support can be expanded.In addition, many browsers also support other URL type and corresponding agreement thereof, the encryption version as FTP, Gopher, HTTPS(HTTP agreement).So in order to make the first browser to the second browser send arbitrary can by the second browser identification, then the device that the embodiment of the present invention provides also comprises:
Described first data, for determining that whether described second browser is identical with the data encapsulation form of the first browser, if not identical, are then encapsulated according to the data encapsulation form that described second browses by data encapsulation module 306.
Above-mentioned one or more technical scheme in the embodiment of the present application, at least has following technique effect:
The method and apparatus that the embodiment of the present invention provides, if arbitrary user has applied for different accounts in different browsers, when the first browser that this arbitrary user utilizes the application to provide carry out browser log in time, then can input multiple accounts (i.e. authorization information) of applying in different browsers simultaneously.When the account that the authorization information received comprises user and applies in multiple browser determined by the first browser, then different browsers account can be sent to corresponding browser server, and undertaken after different browsers logs in by described account, obtain the data that described arbitrary user stores in the corresponding browser of different account, the first browser is by the data syn-chronization that gets to self database.By the same user of said method at the data syn-chronization of different browsers in same browser, thus provide the compatibility of browser.
Because carry out synchronous in the data that different browsers stores for same user, so provide in browser the utilance storing data, avoid the waste of data redundancy to the memory space of browser simultaneously.
In addition, when the synchrodata in different browsers being synchronized to the server of a browser in the embodiment of the present invention, also the multiple data got are carried out the merging of identical data, after the method that the embodiment of the present invention provides carries out data merging, the redundancy storing data can be reduced, reduce redundant data to the waste of memory space.
Method of the present invention is not limited to the embodiment described in embodiment, and those skilled in the art's technical scheme according to the present invention draws and other execution mode belongs to technological innovation scope of the present invention equally.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (11)

1. a method for data syn-chronization, the method is applied in an electronic equipment, it is characterized in that, the method comprises:
First browser receives the first authorization information of input when arbitrary user logs in, and detects in described first authorization information and whether comprises described arbitrary user for logging in the second authorization information of the second browser, obtain the first testing result;
If the first testing result is yes, then generate synchrodata according to described second authorization information and obtain request, and described synchrodata acquisition request is sent to described second browser, make the second browser obtain first data corresponding with described arbitrary user of acquisition request storage according to described synchrodata, described first data are returned described first browser;
First browser by described first data syn-chronization that receives to database.
2. the method for claim 1, is characterized in that, the first browser, by before described first data syn-chronization to database that receives, also comprises further:
Determine that whether described second browser is identical with the data encapsulation form of the first browser, if not identical, then described first data are converted to preset data form.
3. the method as described in as arbitrary in claim 1 or 2, it is characterized in that, the first browser will receive described first data syn-chronization and comprise to database:
Detect in described database and whether store second data corresponding with described arbitrary user, if had, then described first data and described second data are merged, and the data after merging are stored into database.
4. the method for claim 1, is characterized in that, the method also comprises:
When receiving user and store the first request of arbitrary data, then detect in described first request and whether comprise described arbitrary data syn-chronization is identified to the second browser first;
If described first request comprises the first mark, then described first data are sent to the second browser, make the second browser by the second authorization information corresponding stored of described first data and described user.
5. method as claimed in claim 4, is characterized in that, before described first data are sent to the second browser, comprise further:
Determine that whether described second browser is identical with the data encapsulation form of the first browser, if not identical, then described first data are encapsulated according to the data encapsulation form that described second browses.
6. the method for claim 1, is characterized in that, described second browser is one or more.
7. a device for data syn-chronization, the method is applied in an electronic equipment, it is characterized in that, this device comprises:
Authentication module, for receiving the first authorization information of input when arbitrary user logs in, detecting in described first authorization information and whether comprising described arbitrary user for logging in the second authorization information of the second browser, obtaining the first testing result;
Synchrodata download module, if the first testing result is yes, request is obtained for generating synchrodata according to described second authorization information, and described synchrodata acquisition request is sent to described second browser, make the second browser obtain first data corresponding with described arbitrary user of acquisition request storage according to described synchrodata, described first data are returned described first browser;
Synchronization module, for described first data syn-chronization that will receive to database.
8. device as claimed in claim 7, it is characterized in that, this device also comprises:
Described first data, for determining that whether described second browser is identical with the data encapsulation form of the first browser, if not identical, are then converted to preset data form by data conversion module.
9. the device as described in as arbitrary in claim 7 or 8, it is characterized in that, whether synchronization module also stores second data corresponding with described arbitrary user for detecting in described database, if had, then described first data and described second data are merged, and the data after merging are stored into database.
10. device as claimed in claim 7, it is characterized in that, this device also comprises:
Whether transmission module in synchrodata, receives for working as the first request that user stores arbitrary data, then detect in described first request to comprise to be identified to the second browser first by described arbitrary data syn-chronization; If described first request comprises the first mark, then described first data are sent to the second browser, make the second browser by the second authorization information corresponding stored of described first data and described user.
11. devices as claimed in claim 10, it is characterized in that, this device also comprises:
Described first data, for determining that whether described second browser is identical with the data encapsulation form of the first browser, if not identical, are then encapsulated according to the data encapsulation form that described second browses by data encapsulation module.
CN201310347074.8A 2013-08-09 2013-08-09 A kind of method and device that data synchronize Active CN104348893B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310347074.8A CN104348893B (en) 2013-08-09 2013-08-09 A kind of method and device that data synchronize

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310347074.8A CN104348893B (en) 2013-08-09 2013-08-09 A kind of method and device that data synchronize

Publications (2)

Publication Number Publication Date
CN104348893A true CN104348893A (en) 2015-02-11
CN104348893B CN104348893B (en) 2018-08-31

Family

ID=52503680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310347074.8A Active CN104348893B (en) 2013-08-09 2013-08-09 A kind of method and device that data synchronize

Country Status (1)

Country Link
CN (1) CN104348893B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107016074A (en) * 2017-03-24 2017-08-04 腾讯科技(深圳)有限公司 A kind of webpage loading method and device
CN108170688A (en) * 2016-12-06 2018-06-15 北京奇虎科技有限公司 Automate the method and device of logging data
CN110955852A (en) * 2018-09-25 2020-04-03 北京国双科技有限公司 Content import method and device
CN111800460A (en) * 2020-05-27 2020-10-20 深圳壹账通智能科技有限公司 Data synchronization method, device and equipment of LDAP (lightweight directory Access protocol) service node and storage medium
CN113194131A (en) * 2021-04-22 2021-07-30 上海博色信息科技有限公司 Computer mobile phone information synchronization method of web browser

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050066037A1 (en) * 2002-04-10 2005-03-24 Yu Song Browser session mobility system for multi-platform applications
CN102546785A (en) * 2010-12-29 2012-07-04 微软公司 Connected account provider for multiple personal computers
CN102638581A (en) * 2012-03-31 2012-08-15 奇智软件(北京)有限公司 Cookie information storage method and cookie information storage system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050066037A1 (en) * 2002-04-10 2005-03-24 Yu Song Browser session mobility system for multi-platform applications
CN102546785A (en) * 2010-12-29 2012-07-04 微软公司 Connected account provider for multiple personal computers
CN102638581A (en) * 2012-03-31 2012-08-15 奇智软件(北京)有限公司 Cookie information storage method and cookie information storage system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170688A (en) * 2016-12-06 2018-06-15 北京奇虎科技有限公司 Automate the method and device of logging data
CN108170688B (en) * 2016-12-06 2023-10-31 北京奇虎科技有限公司 Method and device for automatically inputting data
CN107016074A (en) * 2017-03-24 2017-08-04 腾讯科技(深圳)有限公司 A kind of webpage loading method and device
CN110955852A (en) * 2018-09-25 2020-04-03 北京国双科技有限公司 Content import method and device
CN111800460A (en) * 2020-05-27 2020-10-20 深圳壹账通智能科技有限公司 Data synchronization method, device and equipment of LDAP (lightweight directory Access protocol) service node and storage medium
CN113194131A (en) * 2021-04-22 2021-07-30 上海博色信息科技有限公司 Computer mobile phone information synchronization method of web browser

Also Published As

Publication number Publication date
CN104348893B (en) 2018-08-31

Similar Documents

Publication Publication Date Title
KR101362384B1 (en) The method and system for browsing things of internet of things on ip using web platform
JP5022301B2 (en) Proxy server, communication relay program, and communication relay method
TWI670611B (en) Web file sending method, webpage rendering method and device, webpage rendering system
CN110096660B (en) Method and device for loading page pictures and electronic equipment
CN104503780B (en) It is a kind of that method and apparatus that applying channel packet are provided
WO2019021048A1 (en) Ephemeral content sharing and connecting users based on sharing unique link from 3r parties' applications and storing and relating unique identity or code of link sharing user with link accessing user
CN105379195B (en) Information sharing method and equipment
KR101520751B1 (en) A method and server for monitoring users during their browsing within a communications network
CN107066609A (en) Image display method and device
CN104348893A (en) Data synchronization method and device
CN103268319A (en) Cloud browser based on webpages
CN108737252B (en) Information pushing method and device based on block chain
CN102968345B (en) Note real-time synchronization method and device
CN107463657B (en) File operation method and terminal
JP6140904B2 (en) Terminal marking method, terminal marking device, program, and recording medium
EP2680215A1 (en) System and method of recommending actions based on social capital of users in a social network
CN104731869B (en) The page shows method and device
CN110929183A (en) Data processing method, device and machine readable medium
CN107003909B (en) Method for accessing remote resources from a data processing device
US20150006681A1 (en) Mobile device and method for controlling transmission to web server in mobile device
JP5112401B2 (en) Web action history acquisition system, Web action history acquisition method, gateway device, and program
CN104283865A (en) Download processing method and device, server and client device
CN103942307A (en) Leading-end acceleration method based on picture stream
US20140108619A1 (en) Information providing system and method for providing information
CN104965907A (en) Structured object generation method and apparatus

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