CN104348893B - A kind of method and device that data synchronize - Google Patents

A kind of method and device that data synchronize Download PDF

Info

Publication number
CN104348893B
CN104348893B CN201310347074.8A CN201310347074A CN104348893B CN 104348893 B CN104348893 B CN 104348893B CN 201310347074 A CN201310347074 A CN 201310347074A CN 104348893 B CN104348893 B CN 104348893B
Authority
CN
China
Prior art keywords
data
browser
user
verification information
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310347074.8A
Other languages
Chinese (zh)
Other versions
CN104348893A (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 the method and device that a kind of data synchronize, this method is applied in an electronic equipment, and this method includes:First browser receives the first verification information inputted when any user logs in, and the second verification information for whether being used to log in the second browser in first verification information comprising any user detected, the first testing result is obtained;If the first testing result is yes, synchrodata is then generated according to second verification information and obtains request, and the synchrodata is obtained into request and is sent to second browser, so that the second browser obtains the first data corresponding with any user of acquisition request storage according to the synchrodata, first data are returned into first browser;First data received are synchronized to database by the first browser.It is synchronized in same browser in the data of different browsers using the same user of method and device provided by the invention, to provide the compatibility of browser.

Description

A kind of method and device that data synchronize
Technical field
The present invention relates to the method and devices that electronic technology field more particularly to a kind of data synchronize.
Background technology
Browser refer to can show the html file content of web page server or file system, and allow user and these A kind of software of file interaction.Web browser mainly interacts by http protocol with web page server and obtains webpage, these Webpage is specified by URL, and file format is usually HTML, and is indicated in http protocol by MIME.May include in one webpage Multiple documents, each document are to be obtained respectively from server.Most browser itself is supported in addition to html The picture formats such as extensive format, such as JPEG, PNG, GIF, and can extend and support numerous plug-in units(plug-ins).Separately Outside, many browsers also support others URL types and its corresponding agreement, such as FTP, Gopher, HTTPS(Http protocol Encryption version).HTTP content types and URL protocol specifications allow Web page maker in webpage embedded images, animation, video, Sound, Streaming Media etc..Common web browser includes Internet Explorer, Mozilla on PC The Safari of Firefox, Apple, Opera, it Google Chrome, GreenBrowser browsers, 360 secure browsers, searches Dog high speed browser, Tencent TT, proud trip browser, baidu browser, Tencent QQ browser etc., browser is to most often use Client-side program.
Personalized service is provided for different user in order to more intelligent, so many browsers provide account system System, such user then provide the identity of one opposite " true ".Using the identity of this " true ", browser then can be more smart Standard is that user carries out customized service.Account system is substantially to store identity information using high in the clouds, no longer according to Client is relied to judge coarse information.
It is overlapping that the user of mobile Internet and conventional internet, which has a sizable part, how by the service on PC It perfectly moves in mobile device, account system is most important.Those have powerful account system on conventional internet Company, promoting client on the net in mobile interchange can be easily very much.The effect of account system is to cover all around setting for user It is standby, when user being made to be accessed from different equipment, consistent personalized service can be obtained.
Account system compares mobile device, is better Identity Provider:All have in user's stickiness and data mobility There is better effect.
But present inventor has found above-mentioned technology extremely during inventive technique scheme in realizing the embodiment of the present application It has the following technical problems less:
Because the renewal speed of browser is quickly, and user many times can use difference with the variation of demands of individuals Browser.The case where different browsers use is replaced for user, user can be made to be stored in previous browser big Loss of data is measured, and new browser also obtains the items money that just can determine that by the data collection of some time using user Material.To which the data circulation between browser can be caused poor, and the data compatibility that can have each browser is not high Problem.
Invention content
The present invention provides a kind of method and device that data synchronize, and method and apparatus provided by the present invention solve existing skill When user updates browser in art, the technical issues of mass data that user stores in previous browser can be made to lose.
The present invention provides a kind of method that data synchronize, and this method is applied in an electronic equipment, and this method includes:
First browser receives the first verification information inputted when any user logs in, detects first verification information In whether be used to log in the second verification information of the second browser comprising any user, obtain the first testing result;
If the first testing result is yes, synchrodata is generated according to second verification information and obtains request, and will The synchrodata obtains request and is sent to second browser so that the second browser is asked according to synchrodata acquisition The first data corresponding with any user for obtaining and storing are sought, first data are returned into first browser;
First data received are synchronized to database by the first browser.
More optimized scheme, before first data received are synchronized to database by the first browser, also into one Step includes:
Determine whether second browser is identical as the data encapsulation format of the first browser, if it is not the same, then will First data are converted to preset data form.
More optimized scheme, the first browser, which will receive first data and be synchronized to database, includes:
It detects and whether is stored with the second data corresponding with any user in the database, if so, then by institute It states the first data to merge with second data, and the data after merging is stored to database.
More optimized scheme, this method further include:
When the first request for receiving user and storing any data, then detect in first request whether include will be described Any data is synchronized to the second browser first identifier;
If first request includes first identifier, first data are sent to the second browser, make the Two browsers by first data it is corresponding with the second verification information of the user storage.
More optimized scheme further comprises before first data are sent to the second browser:
Determine whether second browser is identical as the data encapsulation format of the first browser, if it is not the same, then will First data are packaged according to the data encapsulation format of second browsing.
More optimized scheme, second browser are one or more.
According to the above method the present invention also provides the device that a kind of data synchronize, this method is applied in an electronic equipment, The device includes:
Authentication module, for receiving the first verification information inputted when any user logs in, detection first verification Whether it is used to log in the second verification information of the second browser in information comprising any user, obtains the first testing result;
Synchrodata download module, it is same for being generated according to second verification information if the first testing result is yes Step data obtains request, and the synchrodata is obtained request and is sent to second browser so that the second browser root The first data corresponding with any user that acquisition request storage is obtained according to the synchrodata, first data are returned Return first browser;
Synchronization module, for first data received to be synchronized to database.
More optimized scheme, the device further include:
Data conversion module, for determine second browser and the first browser data encapsulation format whether phase Together, if it is not the same, first data are then converted to preset data form.
More optimized scheme, whether synchronization module is additionally operable to detect in the database is stored with and any user pair The second data answered if so, then merging first data and second data, and the data after merging are deposited Store up database.
More optimized scheme, the device further include:
Synchrodata uploading module, for when the first request that receive user and store any data, then detecting described the Whether include that any data is synchronized to the second browser first identifier in one request;If first request includes First data are then sent to the second browser by first identifier, make the second browser by first data and the use Second verification information at family corresponds to storage.
More optimized scheme, the device further include:
Data package module, for determine second browser and the first browser data encapsulation format whether phase Together, if it is not the same, being then packaged first data according to the data encapsulation format of second browsing.
One or two of above-mentioned technical proposal at least has the following technical effect that:
The method and apparatus that the embodiment of the present invention is provided, if any user has applied for difference in different browsers Account then can be defeated simultaneously when any user carries out browser using the first browser provided herein to be logged in Enter the multiple accounts applied in different browsers(That is verification information).When the first browser determines the verification information packet received User's apllied account in multiple browsers is included, then different browsers account can be sent to corresponding browser service Device, and by the account after different browsers logs in, obtain any user and correspond to browser in different accounts The data got are synchronized in the database of itself by the data of middle storage, the first browser.Pass through the same use of the above method Family is synchronized in the data of different browsers in same browser, to provide the compatibility of browser.
Because being synchronized for the data that same user stores in different browsers, provides in browser and deposit The utilization rate of data is stored up, while avoiding waste of the data redundancy to the memory space of browser.
In addition, when the synchrodata in different browsers being synchronized to the server of a browser in the embodiment of the present invention, The multiple data got are also carried out to the merging of identical data, the method that the embodiment of the present invention is provided carries out data merging Afterwards, it is possible to reduce store the redundancy of data, reduce waste of the redundant data to memory space.
Description of the drawings
Fig. 1 is a kind of flow chart for the method that data synchronize in the embodiment of the present invention;
Fig. 2 is the method flow diagram of data synchronized upload in the method that a kind of data of the embodiment of the present invention synchronize;
Fig. 3 is the result schematic diagram for the device that a kind of data of the embodiment of the present invention synchronize.
Specific implementation mode
Personalized service is provided for different user in order to more intelligent, so many browsers provide account system System, such user then provide the identity of one opposite " true ".Using the identity of this " true ", browser then can be more smart Standard is that user carries out customized service.Account system is substantially to store identity information using high in the clouds, no longer according to Client is relied to judge coarse information.Because of function and technology that each company when developing browser, can all have some personalized On barrier, so in the account system provided in the prior art if any user applied in a certain browser it is corresponding Account, the browser that this account can only just be directed to application account use.But because browser renewal speed quickly, and And user many times can use different browsers with the variation of demands of individuals.The case where browser being replaced for user, The mass data that user stores in previous browser can be then made to lose, and new browser must also pass through for a long time Data collection just can determine that every data using user.To which the data circulation between browser can be caused poor, and Can there is a problem of that the data compatibility of each browser is not high.
The application provides a kind of method that data synchronize regarding to the issue above, and this method is applied in an electronic equipment, should Method includes:First browser receives the first verification information inputted when any user logs in, detection the first verification letter Whether it is used to log in the second verification information of the second browser in breath comprising any user, obtains the first testing result;Such as The first testing result of fruit is yes, then generates synchrodata according to second verification information and obtain request, and by the same step number It is sent to second browser according to request is obtained so that the second browser obtains acquisition request according to the synchrodata and stores The first data corresponding with any user, first data are returned into first browser;First browser will First data received are synchronized to database.
In scheme provided by the present invention, if any user has applied for different accounts in different browsers, When any user carries out browser using the first browser provided herein to be logged in, then can simultaneously input in difference The multiple accounts applied in browser(That is verification information).When the first browser determines that the verification information received includes that user exists Different browsers account can be then sent to corresponding browser server, and passed through by apllied account in multiple browsers The account after different browsers logs in, obtain any user and correspond to the number stored in browser in different accounts According to the data got are synchronized in the database of itself by the first browser.By the same user of the above method different clear The data of device of looking at are synchronized in same browser, to provide the compatibility of browser.
Because being synchronized for the data that same user stores in different browsers, provides in browser and deposit The utilization rate of data is stored up, while avoiding waste of the data redundancy to the memory space of browser.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper Technical solution is stated to be described in detail.
As shown in Figure 1, the embodiment of the present invention provides a kind of method that data synchronize, with reference to the accompanying drawings of the specification to this hair Bright specific implementation mode is described in detail:
Method provided by the present invention is applied in an electronic equipment, and the first browsing is equipped in the electronic equipment Device, when user carries out web page contents browsing using the first browser, this method includes:
Step 101, the first browser receives the first verification information inputted when any user logs in, detection described first Whether it is used to log in the second verification information of the second browser in verification information comprising any user, obtains the first detection knot Fruit;
In embodiments of the present invention, it when user uses the second browser before using the first browser, and uses The second account has been applied at family in the second browser, when user has applied for the first account when using the first browser. In the prior art, corresponding to need that the second browser is installed if user uses the data stored in the second browser, and The data stored in the second browser can be just got after logging in the second browser by the second account.
Multiple browser accounts input by user can be received simultaneously in the first browser that the embodiment of the present invention is provided, I.e. user can directly input the first account and the second account when progress browser logs in the login page of the first browser Number.
In the particular embodiment, multiple input frame can be provided in the login page of the first browser, user can be The login account of different browsers is provided in the multiple input frame of offer.
Step 102, if the first testing result is yes, synchrodata acquisition is generated according to second verification information and is asked It asks, and the synchrodata is obtained into request and is sent to second browser so that the second browser is according to the same step number According to the first data corresponding with any user for obtaining acquisition request storage, it is clear that first data are returned to described first Look at device;
In this embodiment, if detecting that verification information input by user includes the account of the second browser, from The corresponding account information of the second browser is extracted in the verification information.
It is when the second browser includes multiple, then corresponding from institute because the second browser can be one or more State the account obtained in verification information corresponding to multiple second browsers.And according to the relevant information of the second browser to different clear The account of device of looking at carries out different encapsulation and produces multiple synchrodatas obtaining request.And the data of corresponding different browsers are synchronized Request is sent to the server of different browsers so that the server of different browsers obtains user after getting the data Saved data.
Step 103, first data received are synchronized to database by the first browser.
Because same user is possible to apply for account in multiple browsers and stores data, of the invention real It applies in example, for the time loss for saving data space and when reducing browser searches, then can get same use Family is after the data that different browsers store, and synchronous store arrives database after the data got are merged.
Although user is in different times or the content that is browsed of different places has difference, because user Hobby and custom are so the data that user stores in different browsers can have certain redundancy, so in the embodiment of the present invention In, when the data got are synchronized in database, first browser will receive first data and be synchronized to number Include according to library:
It detects and whether is stored with the second data corresponding with any user in the database, if so, then by institute It states the first data to merge with second data, and the data after merging is stored to database.
Further, when the first data being merged with second data in the embodiment, multiple data for will also getting The merging of identical data is carried out, after the method that the embodiment of the present invention is provided carries out data merging, it is possible to reduce store data Redundancy reduces waste of the redundant data to memory space.
Because most browser itself supports extensive format in addition to html, such as JPEG, PNG, GIF etc. Picture format, and can extend and support numerous plug-in units(plug-ins).In addition, many browsers also support others URL Type and its corresponding agreement, such as FTP, Gopher, HTTPS(The encryption version of http protocol).So in order to enable first is clear The synchrodata that device of looking at is sent to the second browser obtains request and can be identified by the second browser, and the first number received It can be used according to itself, then the method that the embodiment of the present invention is provided further includes:
Before first data received are synchronized to database by the first browser, still further comprise:
Determine whether second browser is identical as the data encapsulation format of the first browser, if it is not the same, then will First data are converted to preset data form.
In embodiments of the present invention, the preset format can be the data format of the first browser, the preset format It can also be the data format that browser can be general.
It is that the data of different browsers are synchronized in a specific browser in above-mentioned steps, in addition because user exists Using a certain browser when, it is also possible to need the data for being stored in current browser being synchronized to other browsers, so The method that the method that the embodiment of the present invention is provided also provides synchrodata upload, specifically includes step(As shown in Figure 2):
Step 201, it when the first request for receiving user's storage any data, then detects and whether is wrapped in first request It includes and any data is synchronized to the second browser first identifier;
In this embodiment, when user stores a certain data in the first browser, browser shows a prompt message, carries Show whether user needs the data that will be stored to synchronize the second browser.If it is determined that user needs to synchronize the data, then add In first identifier to the data, so first identifier is used to indicate the data and needs synchronous server.
Step 202, if first request includes first identifier, first data are sent to the second browsing Device makes the second browser by first data storage corresponding with the second verification information of the user.
Further, because most browser itself supports extensive format in addition to html, such as JPEG, The picture formats such as PNG, GIF, and can extend and support numerous plug-in units(plug-ins).In addition, many browsers are also supported Other URL types and its corresponding agreement, such as FTP, Gopher, HTTPS(The encryption version of http protocol).So in order to make The first browser sent to the second browser any can identify that then the embodiment of the present invention is provided by the second browser Before first data are sent to the second browser in method, further comprise:
Determine whether second browser is identical as the data encapsulation format of the first browser, if it is not the same, then will First data are packaged according to the data encapsulation format of second browsing.
Data synchronous between the first browser and the second browser include that browser is locally deposited in embodiments of the present invention The data of storage and server end storage.
Its real data can both be locally stored in browser, can also be stored in server end.
Browser end can preserve some data, directly from local acquisition when needs, sessionStorage, LocalStorage and cookie is stored in local data by browser.
Server end can also preserve all data of all users, but browser will be asked to server when need Data.
Server end can preserve the persistant data of user, as the mass data of user is stored in by database and cloud storage Server end.
Server end can also preserve the interim conversation data of user.The session mechanism of server end, such as jsp Session objects, data preserve on the server.It only needs to transmit session id i.e. in realization, between server and browser Can, server finds the session objects of corresponding user according to session id.Session data is only effective whithin a period of time, This time is exactly the session terms of validity of the ends server setting.
In scheme provided by the present invention, if any user has applied for different accounts in different browsers, When any user carries out browser using the first browser provided herein to be logged in, then can simultaneously input in difference The multiple accounts applied in browser(That is verification information).When the first browser determines that the verification information received includes that user exists Different browsers account can be then sent to corresponding browser server, and passed through by apllied account in multiple browsers The account after different browsers logs in, obtain any user and correspond to the number stored in browser in different accounts According to the data got are synchronized in the database of itself by the first browser.By the same user of the above method different clear The data of device of looking at are synchronized in same browser, to provide the compatibility of browser.
Because being synchronized for the data that same user stores in different browsers, provides in browser and deposit The utilization rate of data is stored up, while avoiding waste of the data redundancy to the memory space of browser.
In addition, when the synchrodata in different browsers being synchronized to the server of a browser in the embodiment of the present invention, The multiple data got are also carried out to the merging of identical data, the method that the embodiment of the present invention is provided carries out data merging Afterwards, it is possible to reduce store the redundancy of data, reduce waste of the redundant data to memory space.
When a certain user is in two different browsers(Browser a and browser b)In corresponding applied for two accounts (Account a and account b), user passes through a browser(Such as:Browser a)When being logged in, if also needing to obtain another clear Look at device(Browser b)Some data of middle storage(The downloading process of synchrodata), then corresponding implementation process be:
User inputs account and account b in browser a, after browser receives account a and account b, is carried out to account a Verification.If account a is verified, the corresponding service a of browser a are sent to by account a is corresponding;Because browser a is also Account b is received, so also needing to further determine that the server b of the corresponding browser b of account b, and account b is sent to clothes Be engaged in device b.
Server a and server b gives account a and the corresponding data feedbacks of account b to browser a, and browser a is by server The data that a and server b are returned merge.
Further, if user uses browser a, some data may be stored, if user needs this Data are corresponding a bit is synchronized to browser b(The upload procedure of synchrodata), then corresponding realization process be:
Browser a determines in data to be stored whether include a sync tag, the sync tag when storing data In include the account b of browser b.Because in synchrodata including account a and account b, system will by account a and Account b logs in different servers, and synchrodata is stored to account a and account b corresponding servers a and server b.
As shown in figure 3, according to the above method the present invention also provides the device that a kind of data synchronize, this method is applied to an electricity In sub- equipment, which includes:
Authentication module 301, for receiving the first verification information inputted when any user logs in, detection described first is tested Whether it is used to log in the second verification information of the second browser in card information comprising any user, obtains the first detection knot Fruit;
Synchrodata download module 302, if the first testing result is yes, for being generated according to second verification information Synchrodata obtains request, and the synchrodata is obtained request and is sent to second browser so that the second browser The first data corresponding with any user that acquisition request storage is obtained according to the synchrodata, by first data Return to first browser;
Synchronization module 303, for first data received to be synchronized to database.
In addition, synchronization module 303 be additionally operable to detect in the database whether be stored with it is corresponding with any user Second data if so, then merging first data and second data, and the data storage after merging are arrived Database.
Because most browser itself supports extensive format in addition to html, such as JPEG, PNG, GIF etc. Picture format, and can extend and support numerous plug-in units(plug-ins).In addition, many browsers also support others URL Type and its corresponding agreement, such as FTP, Gopher, HTTPS(The encryption version of http protocol).So in order to enable first is clear The synchrodata that device of looking at is sent to the second browser obtains request and can be identified by the second browser, and the first number received It can be used according to itself, then the device that the embodiment of the present invention is provided further includes:
Data conversion module 304, for determine second browser and the first browser data encapsulation format whether It is identical, if it is not the same, first data are then converted to preset data form.
It is that the data of different browsers are synchronized in a specific browser in above-mentioned function module, in addition because using Family using a certain browser when, it is also possible to need the data for being stored in current browser being synchronized to other browsers, So the device that the embodiment of the present invention is provided also provides the function module of synchrodata upload, then the device further includes:
Synchrodata uploading module 305, described in when the first request for receiving user's storage any data, then detecting Whether include that any data is synchronized to the second browser first identifier in first request;If wrapped in first request Include first identifier, then first data be sent to the second browser, make the second browser by first data with it is described The second verification information of user corresponds to storage.
Further, because most browser itself supports extensive format in addition to html, such as JPEG, The picture formats such as PNG, GIF, and can extend and support numerous plug-in units(plug-ins).In addition, many browsers are also supported Other URL types and its corresponding agreement, such as FTP, Gopher, HTTPS(The encryption version of http protocol).So in order to make The first browser sent to the second browser any can identify that then the embodiment of the present invention is provided by the second browser Device further includes:
Data package module 306, for determine second browser and the first browser data encapsulation format whether It is identical, if it is not the same, then first data are packaged according to the data encapsulation format of second browsing.
Said one in the embodiment of the present application or multiple technical solutions, at least have the following technical effect that:
The method and apparatus that the embodiment of the present invention is provided, if any user has applied for difference in different browsers Account then can be defeated simultaneously when any user carries out browser using the first browser provided herein to be logged in Enter the multiple accounts applied in different browsers(That is verification information).When the first browser determines the verification information packet received User's apllied account in multiple browsers is included, then different browsers account can be sent to corresponding browser service Device, and by the account after different browsers logs in, obtain any user and correspond to browser in different accounts The data got are synchronized in the database of itself by the data of middle storage, the first browser.Pass through the same use of the above method Family is synchronized in the data of different browsers in same browser, to provide the compatibility of browser.
Because being synchronized for the data that same user stores in different browsers, provides in browser and deposit The utilization rate of data is stored up, while avoiding waste of the data redundancy to the memory space of browser.
In addition, when the synchrodata in different browsers being synchronized to the server of a browser in the embodiment of the present invention, The multiple data got are also carried out to the merging of identical data, the method that the embodiment of the present invention is provided carries out data merging Afterwards, it is possible to reduce store the redundancy of data, reduce waste of the redundant data to memory space.
Method of the present invention is not limited to the embodiment described in specific implementation mode, those skilled in the art according to Technical scheme of the present invention obtains other embodiments, also belongs to the scope of the technical innovation of the present invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (11)

1. a kind of method that data synchronize, this method is applied in an electronic equipment, which is characterized in that this method includes:
First browser receives the first verification information inputted when any user logs in, and detecting in first verification information is No the second verification information for being used to log in the second browser comprising any user, obtains the first testing result;
If the first testing result is yes, synchrodata is generated according to second verification information and obtains request, and will be described Synchrodata obtains request and is sent to second browser so that the second browser obtains request according to the synchrodata and obtains First data are returned to first browser by the first data corresponding with any user for taking storage;
First data received are synchronized to database by the first browser.
2. the method as described in claim 1, which is characterized in that first data received are synchronized to by the first browser Before database, still further comprise:
Determine whether second browser is identical as the data encapsulation format of the first browser, if it is not the same, then will be described First data are converted to preset data form.
3. method as described in claim 1 or 2 is any, which is characterized in that the first browser will receive first data Being synchronized to database includes:
It detects and whether is stored with the second data corresponding with any user in the database, if so, then by described One data are merged with second data, and the data after merging are stored to database.
4. the method as described in claim 1, which is characterized in that this method further includes:
When receive user store any data first request, then detect it is described first request in whether include will be described any Data are synchronized to the second browser first identifier;
If first request includes first identifier, any data is sent to the second browser, is made second clear Look at device by any data it is corresponding with the second verification information of the user storage.
5. method as claimed in claim 4, which is characterized in that before any data is sent to the second browser, into One step includes:
Determine whether second browser is identical as the data encapsulation format of the first browser, if it is not the same, then will be described Any data is packaged according to the data encapsulation format of second browsing.
6. the method as described in claim 1, which is characterized in that second browser is one or more.
7. the device that a kind of data synchronize, which is applied in an electronic equipment, which is characterized in that the device includes:
Authentication module, for receiving the first verification information for inputting when any user logs in the first browser, described in detection Whether it is used to log in the second verification information of the second browser in first verification information comprising any user, obtains the first inspection Survey result;
Synchrodata download module, if the first testing result is yes, for generating same step number according to second verification information It is asked according to obtaining, and the synchrodata is obtained into request and is sent to second browser so that the second browser is according to institute The first data corresponding with any user that synchrodata obtains acquisition request storage are stated, first data are returned into institute State the first browser;
Synchronization module, for first data received to be synchronized to database.
8. device as claimed in claim 7, which is characterized in that the device further includes:
Data conversion module, for determining whether second browser is identical as the data encapsulation format of the first browser, such as Fruit differs, then first data is converted to preset data form.
9. the device as described in claim 7 or 8 is any, which is characterized in that synchronization module is additionally operable to detect in the database Whether with any user corresponding second data are stored with, if so, then by first data and second data It merges, and the data after merging is stored to database.
10. device as claimed in claim 7, which is characterized in that the device further includes:
Synchrodata uploading module, for when the first request for receiving user's storage any data, then detecting described first and asking Whether include that any data is synchronized to the second browser first identifier in asking;If first request includes first Mark, then be sent to the second browser by any data, makes the second browser by any data with the user's Second verification information corresponds to storage.
11. device as claimed in claim 10, which is characterized in that the device further includes:
Data package module, for determining whether second browser is identical as the data encapsulation format of the first browser, such as Fruit differs, then is packaged any data according to the data encapsulation format of second browsing.
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 CN104348893A (en) 2015-02-11
CN104348893B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170688B (en) * 2016-12-06 2023-10-31 北京奇虎科技有限公司 Method and device for automatically inputting data
CN107016074B (en) * 2017-03-24 2023-04-25 腾讯科技(深圳)有限公司 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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* 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

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN104348893A (en) 2015-02-11

Similar Documents

Publication Publication Date Title
US20200412791A1 (en) Mechanism for distinguishing between content to be served through first or second delivery channels
CN102473171B (en) Information about local machine is conveyed to browser application
US8078757B2 (en) Rewritten URL static and dynamic content delivery
CN104798071B (en) Improve web site performance using Edge Server in mist computing architecture
US8069266B2 (en) Integrated static and dynamic content delivery
CN104348893B (en) A kind of method and device that data synchronize
CN104503780B (en) It is a kind of that method and apparatus that applying channel packet are provided
KR101362384B1 (en) The method and system for browsing things of internet of things on ip using web platform
CN105025041B (en) The methods, devices and systems that file uploads
CN105379195B (en) Information sharing method and equipment
US20140310392A1 (en) Method and apparatus for processing composite web transactions
CN106549907B (en) A kind of web app access method, device and system
CN104239577A (en) Method and device for detecting authenticity of webpage data
US8073970B2 (en) In-line static and dynamic content delivery
CN104283903B (en) The method for down loading and device of file
CN103347092A (en) Method and device for recognizing cacheable file
CN106878265A (en) A kind of data processing method and device
CN103577526B (en) It is a kind of to verify method, system and browser that whether the page is changed
CN110929183A (en) Data processing method, device and machine readable medium
CN107463657A (en) File operation method and terminal
CN111797355A (en) Webpage fixed evidence storing method based on customized browser
CN104580380A (en) Synchronization method and system for logging status
CN107454080A (en) One kind is based on internet data security method and system
US9471552B1 (en) Optimization of scripting for web applications
CN104202403B (en) Webpage browsing acceleration method, cloud server and browser

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