WO2019052059A1 - 一种当前页面之间数据信息传递的方法及系统 - Google Patents

一种当前页面之间数据信息传递的方法及系统 Download PDF

Info

Publication number
WO2019052059A1
WO2019052059A1 PCT/CN2017/116430 CN2017116430W WO2019052059A1 WO 2019052059 A1 WO2019052059 A1 WO 2019052059A1 CN 2017116430 W CN2017116430 W CN 2017116430W WO 2019052059 A1 WO2019052059 A1 WO 2019052059A1
Authority
WO
WIPO (PCT)
Prior art keywords
data information
local memory
identifier
page
pages
Prior art date
Application number
PCT/CN2017/116430
Other languages
English (en)
French (fr)
Inventor
石旗
Original Assignee
上海斐讯数据通信技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海斐讯数据通信技术有限公司 filed Critical 上海斐讯数据通信技术有限公司
Publication of WO2019052059A1 publication Critical patent/WO2019052059A1/zh

Links

Images

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/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Definitions

  • the present invention relates to the field of Internet webpage technologies, and in particular, to a method and system for transmitting data information between current pages
  • Session Storage is used to store data in a session locally. This data can only be accessed by pages in the same session and the data is destroyed when the session ends. Therefore, session storage is not a persistent local storage, just session-level storage. Local Storage is used for persistent local storage, and data is never expired unless data is actively deleted.
  • the patent of CN106254529A provides a client data caching method and apparatus, the method comprising: initiating a data request to a server, and acquiring first data from the server; according to the type of the first data, at a client The first data is cached in a corresponding manner; when the client receives the instruction to obtain the first data, the first data is taken out from the cache of the client.
  • the above method reduces the frequency of interaction between the client and the server, and reduces the pressure on the server.
  • the input information is stored in the client's cache for a long time, lacks security, and cannot cache a large amount of data information.
  • the technical solution adopted by the present invention to solve the technical problem is to provide a method and system for transmitting data information between current pages, which includes:
  • a method for transferring data information between current pages comprising the steps of:
  • S2 sending a corresponding identifier to the local client, where the identifier is used to identify data information input by the current page;
  • S3 Receive an access signal, send the identifier to the server, and extract data information stored in the local memory according to the identifier.
  • step S1 further includes the steps of:
  • the name and content of the input data information it is stored in the local memory in the form of a key value.
  • the method further includes the steps of:
  • step S3 further includes the steps of:
  • the method further includes the steps of:
  • a system for transferring data information between pages including:
  • Storage module used to receive data information input by the current page and save it to local memory
  • An identifier module configured to send a corresponding identifier to a local client, where the identifier is used to identify data information input by the current page;
  • An extraction module is configured to receive an access signal, send the identifier to a server, and extract data information stored in the local memory according to the identifier.
  • the storage module further includes:
  • Classification unit used to store the data in the local memory according to the name and content of the input data information.
  • the detecting module is configured to: if it detects that the current page is closed, clear the data information input by the current page corresponding to the local memory.
  • the extraction module further includes:
  • the determining unit is configured to determine whether the access signal is an access signal sent by the current page, and if yes, share the data information in the local memory, and if not, block the access signal from accessing the data information in the local memory.
  • Deleting module for receiving a delete page signal, deleting data information input in the corresponding page;
  • Clear module used to receive the clear page signal, clear the data information input on all pages.
  • Embodiment 1 is a flowchart of a method for transmitting data information between current pages according to Embodiment 1;
  • Embodiment 2 is a system structural diagram of data information transfer between current pages according to Embodiment 1;
  • Embodiment 3 is a flow chart of a method for transmitting data information between current pages according to Embodiment 2;
  • FIG. 5 is a flowchart of a method for transmitting data information between current pages according to Embodiment 3;
  • FIG. 6 is a structural diagram of a system for transmitting data information between current pages according to Embodiment 3.
  • the local memory for storing data information is session storage, which has a larger storage space than the cookie, and does not need to frequently interact with the server.
  • the data can only be accessed by pages in the same session and after the session ends. It is also destroyed. Therefore, session storage is not a persistent local storage, only session-level storage, while session storage can provide more storage space and more security.
  • This embodiment provides a method for transmitting data information between current pages, as shown in FIG. 1 , including the steps of:
  • S12 Send a corresponding identifier to the local client, where the identifier is used to identify data information input by the current page;
  • S13 Receive an access signal, send the identifier to the server, and extract data information stored in the local memory according to the identifier.
  • step S11 is to receive the data information input by the current page, and save it to the local memory.
  • the user inputs data information, such as a login password, on the current page.
  • data information such as a login password
  • the corresponding key and value are set for the parameters that need to be transmitted.
  • the client requests to obtain the input data information
  • the input data information is stored in the local memory session storage. If the current page is closed or when a program command to delete the current page data information is received, the current page information saved in the session storage is deleted.
  • the local memory session storage is stored in the local memory in the form of a key value according to the name and content of the input data information, such as storing the name of the data in the key, and storing the content of the data information in the value.
  • step S12 is to send a corresponding identifier to the local client, and the identifier is used to identify the data information input by the current page.
  • the identifier is used to identify the data information input by the current page, and when the server needs to invoke the data information, according to the session identifier Identify corresponding data information and extract corresponding data information from local memory.
  • step S13 is to receive the access signal, send the identifier to the server, and extract the data information stored in the local memory according to the identifier.
  • the access signal is sent to the local client, and the local client receives the access signal, and sends the identifier corresponding to the data information to be accessed to the server, and the server identifies the session identifier according to the received session identifier.
  • a character that extracts the data information stored in the local memory For example, when the server needs to call the input data information, use the program command sessionStorage.getItem("name"). At this time, the local memory is in the key directory. The data information corresponding to "name” is "Zhang San", and the program setting command can continue to be used to set and distinguish other input data information.
  • the embodiment further provides a system for transmitting data information between current pages, as described in FIG. 2, including:
  • the storage module 21 is configured to receive data information input by the current page, and save the data information to the local memory;
  • the identifier module 22 is configured to send a corresponding identifier to the local client, where the identifier is used to identify data information input by the current page;
  • the extracting module 23 is configured to receive an access signal, send the identifier to the server, and extract the data information stored in the local memory according to the identifier.
  • the storage module 21 is configured to receive data information input by the current page and save the data to the local memory.
  • the storage module 21 further includes a classification unit.
  • the local client memory session storage stores the data information input by the user in the form of a key value, and sets a corresponding key and value for the parameter to be delivered, wherein the key indicates a different name of the data information.
  • value represents the content of the data information, and the data information input by the user is classified by key and value. For example, when the data information input by the user is a field named "Zhang San", set sessionLS.setItem ("name”, "Zhang San”), at this time, "name” appears in the key directory, and its corresponding value directory The value below is "Zhang San”.
  • the identifier module is configured to send a corresponding identifier to the local client, where the identifier is used to identify data information input by the current page.
  • the identifier is used to identify the data information input by the current page, and when the server needs to invoke the data information, according to the session identifier Identify corresponding data information and extract corresponding data information from local memory.
  • the extraction module 22 is configured to receive an access signal, send the identifier to the server, and extract data information stored in the local memory according to the identifier.
  • the access signal is sent to the local client, and the local client receives the access signal, and sends the identifier corresponding to the data information to be accessed to the server, and the server identifies the session identifier according to the received session identifier. a character that extracts the data information stored in the local memory.
  • the extraction module 23 is configured to receive an access signal, send the identifier to the server, and extract data information stored in the local memory according to the identifier.
  • the session storage is used to store the data information.
  • the current page information saved in the local memory session storage will also be deleted, and when the browser is received, the client is closed. Or delete all the signal information of the page, at this time, all the data information input by the user will be cleared, and the session information is used to save the data information input by the page, without interaction with the server, thereby reducing the waste of bandwidth and ensuring The security of user information.
  • This embodiment provides another method for transferring data information between current pages, as shown in FIG. 3, including the steps:
  • S31 receiving data information input by the current page, and saving the data to the local memory
  • S33 Send a corresponding identifier to the local client, where the identifier is used to identify data information input by the current page;
  • S34 determining whether the access signal is an access signal sent by the current page, and if yes, sharing the data information in the local memory, and if not, preventing the access signal from accessing the data information in the local memory;
  • S35 Receive an access signal, send the identifier to the server, and extract data information stored in the local memory according to the identifier.
  • the difference from the first embodiment is that the embodiment further includes steps S32 and S34.
  • Step S32 is correspondingly stored in the local memory in the form of a key value according to the name and content of the input data information.
  • the session storage classifies the information stored by the user by key and value, where key represents a different name and type of the data information, and value represents the content in the data information.
  • key represents a different name and type of the data information
  • value represents the content in the data information.
  • step S34 is to determine whether the access signal is an access signal sent by the current page. If yes, the data information in the local memory is shared, and if not, the access signal is prevented from accessing the data information in the local memory.
  • the data stored in the session storage is valid only on the current page.
  • the data information input by the user on the current page is saved in the corresponding local memory. In this case, if it is necessary to access the locally stored data information, it is necessary to determine whether the access signal asks the current information.
  • the access signal of the page if yes, shares the data information input by the user in the current page.
  • This embodiment further provides another system for transferring data information between current pages, as shown in FIG. 4, including:
  • the storage module 41 is configured to receive data information input by the current page, and save the data information to the local memory;
  • the identifier module 42 is configured to send a corresponding identifier to the local client, where the identifier is used to identify data information input by the current page;
  • the extracting module 43 is configured to receive an access signal, send the identifier to the server, and extract the data information stored in the local memory according to the identifier.
  • Classification unit 44 correspondingly stored in the local memory in the form of a key value according to the name and content of the input data information;
  • the determining unit 45 determines whether the access signal is an access signal sent by the current page, and if so, shares the data information in the local memory, and if not, blocks the access signal from accessing the data information in the local memory.
  • the session storage classifies the information stored by the user by key and value, where key represents a different name and type of the data information, and value represents the content in the data information.
  • key represents a different name and type of the data information
  • value represents the content in the data information.
  • the data stored in the session storage is valid only on the current page.
  • the data information input by the user on the current page is saved in the corresponding local memory. In this case, if it is necessary to access the locally stored data information, it is necessary to determine whether the access signal asks the current information.
  • the access signal of the page if yes, shares the data information input by the user in the current page.
  • session storage By using session storage to store data information, the data can only be accessed by pages in the same session and the data is destroyed when the session ends. Therefore, session storage is not a permanent local storage, real-time, and does not require user initiative. Delete data information.
  • This embodiment provides another method for transferring data information between current pages, as shown in FIG. 5, including the steps:
  • S53 Send a corresponding identifier to the local client, where the identifier is used to identify data information input by the current page;
  • S54 determining whether the access signal is an access signal sent by the current page, and if yes, sharing the data information in the local memory, and if not, preventing the access signal from accessing the data information in the local memory;
  • S55 Receive an access signal, send the identifier to the server, and extract data information stored in the local memory according to the identifier.
  • S56 Receive a delete page signal, and delete the data information input in the corresponding page;
  • steps S56 and S57 are further included.
  • Step S56 is to receive the delete page signal, and delete the data information input in the corresponding page.
  • the calling program command deletes the current page information. For example, when the field needs to be deleted, the removeItem is called to delete the key, indicating that the value stored locally in the specified key is deleted. Code example: sessionstorage.removeItem("key").
  • Step S57 is to receive the clear page signal, and clear the data information input by all the pages.
  • the clear command is called.
  • This embodiment also provides another system for transferring data information between current pages. As shown in FIG. 6, the difference from the first embodiment and the second embodiment is that the method further includes:
  • the deleting module 64 is configured to receive a delete page signal, and delete the data information input in the corresponding page;
  • the clearing module 65 is configured to receive the clear page signal and clear the data information input by all the pages.
  • the current information may be deleted or cleared by the calling program command.
  • the code is input:
  • the stored data in the session storage will still be automatically cleared.
  • the user can also set the code command to manually clear the unnecessary parameters without closing the current page to achieve the purpose of clearing a certain parameter.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Storage Device Security (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了当前页面之间数据信息传递的方法及系统,用于解决当前数据信息的传递浪费带宽和被暴露的问题。该方法包括:S1:接收当前页面输入的数据信息,将其保存至本地内存中;S2:发送对应的标识符至本地客户端,所述标识符用于标识当前页面输入的数据信息;S3:接收访问信号,将所述标识符发送至服务器端,根据所述标识符提取存储在本地内存中的数据信息。采用本发明,大大提高了数据信息的存储空间和数据传递的安全性。

Description

一种当前页面之间数据信息传递的方法及系统 技术领域
本发明涉及互联网网页技术领域,尤其涉及一种当前页面之间数据信息传递的方法及系统
背景技术
随着互联网技术的快速发展,越来越多的数据信息需要处理和传送,而在保证大量数据传递的同时,还需要保证一些用户的个人信息的安全以及信息传递的准确性。Web应用的发展,使得客户端存储使用得也越来越多,而实现客户端存储的方式则是多种多样。
Session Storage用于本地存储一个会话(session)中的数据,这些数据只有在同一个会话中的页面才能访问并且当会话结束后数据也随之销毁。因此session Storage不是一种持久化的本地存储,仅仅是会话级别的存储。Local Storage用于持久化的本地存储,除非主动删除数据,否则数据是永远不会过期的。
公开号为CN106254529A的专利提供了一种客户端数据缓存方法和装置,该方法包括向服务器端发起数据请求,并从所述服务器端获取第一数据;根据所述第一数据的类型,在客户端中以对应的方式缓存所述第一数据;当客户端接收到获取第一数据的指令时,从客户端的缓存中取出所述第一数据。上述方法减少了客户端与服务器的交互频率,减轻了服务器的压力。输入的信息长久的保存在客户端的缓存中,缺乏安全性,同时也无法缓存大量的数据信息。
发明内容
本发明解决其技术问题采用的技术方案是,提出一种当前页面之间数据信息传递的方法及系统,其包括:
一种当前页面之间数据信息传递的方法,包括步骤:
S1:接收当前页面输入的数据信息,将其保存至本地内存中;
S2:发送对应的标识符至本地客户端,所述标识符用于标识当前页面输入的数据信息;
S3:接收访问信号,将所述标识符发送至服务器端,根据所述标识符提取存储在本地内存中的数据信息。
进一步的,步骤S1还包括步骤:
根据输入的数据信息的名称及内容,以键值的形式对应存储至本地内存中。
进一步的,还包括步骤:
若检测到当前页面被关闭,则清除存储在本地内存中对应的当前页面输入的数据信息。
进一步的,步骤S3还包括步骤:
判断所述访问信号是否为当前页面发送的访问信号,若是,则共享本地内存中的数据信息,若否,则阻止所述访问信号访问本地内存中的数据信息。
进一步的,还包括步骤:
接收删除页面信号,删除所述对应页面中输入的数据信息;
接收清除页面信号,清除所有页面输入的数据信息。
一种当前页面之间数据信息传递的系统,包括:
存储模块:用于接收当前页面输入的数据信息,将其保存至本地内存中;
标识模块:用于发送对应的标识符至本地客户端,所述标识符用于标识当前页面输入的数据信息;
提取模块:用于接收访问信号,将所述标识符发送至服务器端,根据所述标识符提取存储在本地内存中的数据信息。
进一步的,存储模块还包括:
分类单元:用于根据输入的数据信息的名称及内容,以键值的形式对应存储至本地内存中。
进一步的,还包括:
检测模块:用于若检测到当前页面被关闭,则清除存储在本地内存中对应的当前页面输入的数据信息。
进一步的,提取模块还包括:
判断单元:用于判断所述访问信号是否为当前页面发送的访问信号,若是,则共享本地内存中的数据信息,若否,则阻止所述访问信号访问本地内存中的数据信息。
进一步的,还包括:
删除模块:用于接收删除页面信号,删除所述对应页面中输入的数据信息;
清空模块:用于接收清除页面信号,清空所有页面输入的数据信息。
附图说明
图1是实施例一提供的一种当前页面之间数据信息传递的方法流程图;
图2是实施例一提供的一种当前页面之间数据信息传递的系统结构图;
图3是实施例二提供的一种当前页面之间数据信息传递的方法流程图;
图4是实施例二提供的一种当前页面之间数据信息传递的系统结构图;
图5是实施例三提供的一种当前页面之间数据信息传递的方法流程图;
图6是实施例三提供的一种当前页面之间数据信息传递的系统结构图。
具体实施方式
以下是本发明的具体实施例并结合附图,对本发明的技术方案作进一步的描述,但本发明并不限于这些实施例。
本发明中,用于存储数据信息的本地内存为session Storage,具有相对cookie更大的存储空间,不用频繁的与服务器交互,这些数据只有在同一个会话中的页面才能访问并且当会话结束后数据也随之销毁。因此session Storage不是一种持久化的本地存储,仅仅是会话级别的存储,同时采用session storage可以提供更大的存储空间以及更具有安全性。
实施例一
本实施例提供了一种当前页面之间数据信息传递的方法,如图1所示,包括步骤:
S11:接收当前页面输入的数据信息,将其保存至本地内存中;
S12:发送对应的标识符至本地客户端,所述标识符用于标识当前页面输入的数据信息;
S13:接收访问信号,将所述标识符发送至服务器端,根据所述标识符提取存储在本地内存中的数据信息。
本实施例中,步骤S11为接收当前页面输入的数据信息,将其保存至本地内存中。
具体的,
用户在当前页面输入数据信息,如登录密码,此时对需要传递的参数设置相应的key和value,客户端请求获取到输入的数据信息后,将输入的数据信息存储至本地内存session storage中,若当前页面被关闭或者当接收到删除当前页面数据信息的程序命令时,则将session storage中保存的当前页面信息删除。本地内存session storage根据输入的数据信息的名称及内容,以键值的形式对应存储至本地内存中,如在key中存储数据的名称,在value中存储数据信息的内容。例如:当用户输入的数据信息为一个name为“张三”的字段时,设置sessionLS.setItem(“name”,“张三”),此时key目录下出现“name”,其对应的value目录下的值为“张三”。
本实施例中,步骤S12为发送对应的标识符至本地客户端,所述标识符用于标识当前页面输入的数据信息。
具体的,
在将用户输入的数据信息保存至本地内存后,需要为该信息添加一个会话标识符,所述标识符用于标识当前页面输入的数据信息,当服务器需要调用数据信息时,根据该会话标识符识别对应的数据信息,从本地内存中提取对应的数据信息。
本实施例中,步骤S13为接收访问信号,将所述标识符发送至服务器端,根据所述标识符提取存储在本地内存中的数据信息。
具体的,
当服务器需要访问用户输入的数据信息时,发送访问信号至本地客户端中,本地客户端收到访问信号,将需要访问的数据信息对应的标识符发送至服务器端,服务器端根据接收的会话标识符,提取所述存储在本地内存中的数据信息。例如:在服务器需要调用输入的数据信息时,使用程序命令sessionStorage.getItem(“name”),此时,本地内存中key目录下中的 “name”对应的数据信息为“张三”,也可继续使用程序设置命令对其他输入的数据信息进行设置区分。
本实施例还提供一种当前页面之间数据信息传递的系统,如图2所述,包括:
存储模块21:用于接收当前页面输入的数据信息,将其保存至本地内存中;
标识模块22:用于发送对应的标识符至本地客户端,所述标识符用于标识当前页面输入的数据信息;
提取模块23:用于接收访问信号,将所述标识符发送至服务器端,根据所述标识符提取存储在本地内存中的数据信息。
本实施例中,存储模块21用于接收当前页面输入的数据信息,将其保存至本地内存。
具体的,
存储模块21中还包括分类单元,本地客户端内存session storage中是以键值的形式存储用户输入的数据信息的,对需要传递的参数设置相应的key和value,其中key表示数据信息的不同名称,value表示数据信息的内容,将用户输入的数据信息进行key,value分类。例如:当用户输入的数据信息为一个name为“张三”的字段时,设置sessionLS.setItem(“name”,“张三”),此时key目录下出现“name”,其对应的value目录下的值为“张三”。
本实施例中,标识模块用于发送对应的标识符至本地客户端,所述标识符用于标识当前页面输入的数据信息。
具体的,
在将用户输入的数据信息保存至本地内存后,需要为该信息添加一个会话标识符,所述标识符用于标识当前页面输入的数据信息,当服务器需要调用数据信息时,根据该会话标识符识别对应的数据信息,从本地内存中提取对应的数据信息。
本实施例中,提取模块22用于接收访问信号,将所述标识符发送至服务器端,根据所述标识符提取存储在本地内存中的数据信息。
具体的,
当服务器需要访问用户输入的数据信息时,发送访问信号至本地客户端中,本地客户端收到访问信号,将需要访问的数据信息对应的标识符发送至服务器端,服务器端根据接收的会话标识符,提取所述存储在本地内存中的数据信息。
本实施例中,提取模块23用于接收访问信号,将所述标识符发送至服务器端,根据所述标识符提取存储在本地内存中的数据信息。
具体的,
采用session storage存储数据信息,当接收到删除当前页面信息或当前页面被关闭的信号时,此时本地内存session storage中保存的当前页面信息也将被删除,而当接收到浏览器客户端被关闭或删除所有页面数据信息的信号时,此时用户所有输入的数据信息都将被清除,通过采用session storage保存页面输入的数据信息,不用与服务器之间进行交互,减少了带宽的浪费,也保证了用户信息的安全性。
实施例二
本实施例提供另一种当前页面之间数据信息传递的方法,如图3所示,包括步骤:
S31:接收当前页面输入的数据信息,将其保存至本地内存中;
S32:根据输入的数据信息的名称及内容,以键值的形式对应存储至本地内存中;
S33:发送对应的标识符至本地客户端,所述标识符用于标识当前页面输入的数据信息;
S34:判断访问信号是否为当前页面发送的访问信号,若是,则共享本地内存中的数据信息,若否,则阻止所述访问信号访问本地内存中的数据信息;
S35:接收访问信号,将所述标识符发送至服务器端,根据所述标识符提取存储在本地内存中的数据信息。
与实施例一不同之处在于,本实施例还包括步骤S32、S34。
步骤S32为根据输入的数据信息的名称及内容,以键值的形式对应存储至本地内存中。
具体的,
session storage对用户存储的信息以key、value进行分类,其中key表示数据信息不同的名称和类型,value表示数据信息中的内容。当用户输入数据信息后,根据数据信息不同的名称发送至key目录下,其中数据信息的内容对应发送至value目录下,依次进行分类,当需要对数据信息进行再细分时,只需在数据信息名称下进行再分类。
本实施例中步骤S34为判断访问信号是否为当前页面发送的访问信号,若是,则共享本地内存中的数据信息,若否,则阻止所述访问信号访问本地内存中的数据信息。
具体的,
session storage中存储的数据只在当前页面生效,用户在当前页面输入的数据信息保存在对应的本地内存中,此时,若需要访问本地存储的数据信息,则需要判断所述访问信号是否问当前页面的访问信号,若是,则共享当前页面中用户输入的数据信息。
本实施例还提供另一种当前页面之间数据信息传递的系统,如图4所示,包括:
存储模块41:用于接收当前页面输入的数据信息,将其保存至本地内存中;
标识模块42:用于发送对应的标识符至本地客户端,所述标识符用于标识当前页面输入的数据信息;
提取模块43:用于接收访问信号,将所述标识符发送至服务器端,根据所述标识符提取存储在本地内存中的数据信息。
与实施例一不同之处在于,还包括:
分类单元44:根据输入的数据信息的名称及内容,以键值的形式对应存储至本地内存中;
判断单元45:判断访问信号是否为当前页面发送的访问信号,若是,则共享本地内存中的数据信息,若否,则阻止所述访问信号访问本地内存中的数据信息。
具体的,
session storage对用户存储的信息以key、value进行分类,其中key表示数据信息不同的名称和类型,value表示数据信息中的内容。当用户输入数据信息后,根据数据信息不同的名称发送至key目录下,其中数据信息的内容对应发送至value目录下,依次进行分类,当需要对数据信息进行再细分时,只需在数据信息名称下进行再分类。
session storage中存储的数据只在当前页面生效,用户在当前页面输入的数据信息保存在对应的本地内存中,此时,若需要访问本地存储的数据信息,则需要判断所述访问信号是否问当前页面的访问信号,若是,则共享当前页面中用户输入的数据信息。
通过采用session storage存储数据信息,这些数据只有在同一会话中的页面才能访问并且当会话结束后数据也随之销毁,因此session storage不是一种永久性的本地存储,具有实时性,不需要用户主动的删除数据信息。
实施例三
本实施例提供另一种当前页面之间数据信息传递的方法,如图5所示,包括步骤:
S51:接收当前页面输入的数据信息,将其保存至本地内存中;
S52:根据输入的数据信息的名称及内容,以键值的形式对应存储至本地内存中;
S53:发送对应的标识符至本地客户端,所述标识符用于标识当前页面输入的数据信息;
S54:判断访问信号是否为当前页面发送的访问信号,若是,则共享本地内存中的数据信息,若否,则阻止所述访问信号访问本地内存中的数据信息;
S55:接收访问信号,将所述标识符发送至服务器端,根据所述标识符提取存储在本地内存中的数据信息。
S56:接收删除页面信号,删除所述对应页面中输入的数据信息;
S57:接收清除页面信号,清除所有页面输入的数据信息。
与实施例一、二不同之处在于,还包括步骤S56、S57。
步骤S56为接收删除页面信号,删除所述对应页面中输入的数据信息。
具体的,
当某个参数需要删除时,调用程序命令对当前页面信息进行删除,例如:需要删除这个字段时,调用removeItem删除key,表示删除指定key中本地存储的值。代码示例:sessionstorage.removeItem(“key”)。
步骤S57为接收清除页面信号,清除所有页面输入的数据信息。
具体的,
当用户输入了很多的数据信息时,需要清除掉所有的数据信息,则调用清除命令。
代码示例:sessionstorage.clear(),清除掉所有的key和value。
本实施例还提供另一种当前页面之间数据信息传递的系统,如图6所示,与实施例一、二不同之处在于还包括:
删除模块64:用于接收删除页面信号,删除所述对应页面中输入的数据信息;
清除模块65:用于接收清除页面信号,清除所有页面输入的数据信息。
具体的,当用户需要删除某个参数时,可以对调用程序命令对当前信息进行删除或清除,例如:需要删除某个参数时,输入代码:
sessionstorage.removeItem(“key”),用于删除指定的key;
sessionstorage.clear(),用于清除所有的key和value。
在用户关掉页面后,session storage中的存储数据依然会自动清除,同时用户也可以设置代码命令手动的清除掉不需要的参数,而不需要通过关闭当前页面来达到清除某个参数的目的。
本文中所描述的具体实施例仅仅是对本发明精神作举例说明。本发明所属技术领域的技术人员可以对所描述的具体实施例做各种各样的修改或补充或采用类似的方式替代,但并不会偏离本发明的精神或者超越所附权利要求书所定义的范围。

Claims (10)

  1. 一种当前页面之间数据信息传递的方法,其特征在于,包括步骤:
    S1:接收当前页面输入的数据信息,将其保存至本地内存中;
    S2:发送对应的标识符至本地客户端,所述标识符用于标识当前页面输入的数据信息;
    S3:接收访问信号,将所述标识符发送至服务器端,根据所述标识符提取存储在本地内存中的数据信息。
  2. 根据权利要求1所述的一种页面之间数据信息传递的方法,其特征在于,步骤S1还包括步骤:
    根据输入的数据信息的名称及内容,以键值的形式对应存储至本地内存中。
  3. 根据权利要求1所述的一种页面之间数据信息传递的方法,其特征在于,还包括步骤:
    若检测到当前页面被关闭,则清除存储在本地内存中对应的当前页面输入的数据信息。
  4. 根据权利要求1所述的一种页面之间数据信息传递的方法,其特征在于,步骤S3还包括步骤:
    判断所述访问信号是否为当前页面发送的访问信号,若是,则共享本地内存中的数据信息,若否,则阻止所述访问信号访问本地内存中的数据信息。
  5. 根据权利要求1所述的一种浏览器页面之间数据传递的方法,其特征在于,还包括步骤:
    接收删除页面信号,删除所述对应页面中输入的数据信息;
    接收清除页面信号,清除所有页面输入的数据信息。
  6. 一种当前页面之间数据信息传递的系统,其特征在于,包括:
    存储模块:用于接收当前页面输入的数据信息,将其保存至本地内存中;
    标识模块:用于发送对应的标识符至本地客户端,所述标识符用于标识当前页面输入的数据信息;
    提取模块:用于接收访问信号,将所述标识符发送至服务器端,根据所述标识符提取存储在本地内存中的数据信息。
  7. 根据权利要求6所述的一种页面之间数据信息传递的系统,其特征在于,存储模块还包括:
    分类单元:用于根据输入的数据信息的名称及内容,以键值的形式对应存储至本地内存中。
  8. 根据权利要求6所述的一种页面之间数据信息传递的系统,其特征在于,还包括:
    检测模块:用于若检测到当前页面被关闭,则清除存储在本地内存中对应的当前页面输入的数据信息。
  9. 根据权利要求6所述的一种页面之间数据信息传递的系统,其特征在于,提取模块还包括:
    判断单元:用于判断所述访问信号是否为当前页面发送的访问信号,若是,则共享本地内存中的数据信息,若否,则阻止所述访问信号访问本地内存中的数据信息。
  10. 根据权利要求6所述的一种浏览器页面之间数据传递的系统,其特征在于,还包括:
    删除模块:用于接收删除页面信号,删除所述对应页面中输入的数据信息;
    清空模块:用于接收清除页面信号,清空所有页面输入的数据信息。
PCT/CN2017/116430 2017-09-18 2017-12-15 一种当前页面之间数据信息传递的方法及系统 WO2019052059A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710839654.7 2017-09-18
CN201710839654.7A CN107733989A (zh) 2017-09-18 2017-09-18 一种当前页面之间数据信息传递的方法及系统

Publications (1)

Publication Number Publication Date
WO2019052059A1 true WO2019052059A1 (zh) 2019-03-21

Family

ID=61206596

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/116430 WO2019052059A1 (zh) 2017-09-18 2017-12-15 一种当前页面之间数据信息传递的方法及系统

Country Status (2)

Country Link
CN (1) CN107733989A (zh)
WO (1) WO2019052059A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416951B (zh) * 2019-08-21 2024-03-01 北京京东乾石科技有限公司 数据传递方法及其装置、计算机可存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045171A (zh) * 2010-12-30 2011-05-04 北京世纪互联工程技术服务有限公司 统一认证系统和基于该统一认证系统的登录方法
WO2016160747A1 (en) * 2015-03-31 2016-10-06 Microsoft Technology Licensing, Llc Session transfer between resources
CN106776132A (zh) * 2016-12-01 2017-05-31 深圳市小满科技有限公司 数据恢复系统及方法
CN107168972A (zh) * 2016-03-07 2017-09-15 广州市动景计算机科技有限公司 一种网页中输入项目的填充内容即时存储方法及设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7261239B2 (en) * 2003-12-17 2007-08-28 Bindu Rama Rao Questionnaire network for mobile handsets and a trading system for contracts on user commitments to answer questionnaires
CN105335404B (zh) * 2014-07-29 2019-05-28 北京奇虎科技有限公司 页面信息加载方法和装置
CN105550187A (zh) * 2014-11-03 2016-05-04 阿里巴巴集团控股有限公司 单页应用中浏览记录的管理方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045171A (zh) * 2010-12-30 2011-05-04 北京世纪互联工程技术服务有限公司 统一认证系统和基于该统一认证系统的登录方法
WO2016160747A1 (en) * 2015-03-31 2016-10-06 Microsoft Technology Licensing, Llc Session transfer between resources
CN107168972A (zh) * 2016-03-07 2017-09-15 广州市动景计算机科技有限公司 一种网页中输入项目的填充内容即时存储方法及设备
CN106776132A (zh) * 2016-12-01 2017-05-31 深圳市小满科技有限公司 数据恢复系统及方法

Also Published As

Publication number Publication date
CN107733989A (zh) 2018-02-23

Similar Documents

Publication Publication Date Title
US7765275B2 (en) Caching of private data for a configurable time period
WO2016006520A1 (ja) 検知装置、検知方法及び検知プログラム
WO2017092351A1 (zh) 缓存数据的更新方法及装置
US20120246338A1 (en) Selective use of anonymous proxies
US20170374017A1 (en) Verification of server name in a proxy device for connection requests made using domain names
WO2020228038A1 (zh) 域名处理方法、装置、电子设备以及存储介质
US20190182270A1 (en) System and method for inquiring ioc information by p2p protocol
WO2015014189A1 (zh) 一种访问网站的方法及装置
AU2017265064B2 (en) Access to data on a remote device
CN105812402B (zh) 基于物联网的文件传输方法和装置
EP3175365A1 (en) Web redirection for content filtering
CN107241300B (zh) 用户请求的拦截方法和装置
CN105302801A (zh) 一种资源缓存方法及装置
US20240129272A1 (en) Methods and systems for communication session management
JP2003288261A (ja) データ転送装置、データ転送方法及びプログラム
WO2018228234A1 (zh) 视频缓存方法及视频缓存装置
CN111371889B (zh) 消息处理方法、装置、物联网系统和存储介质
WO2023045196A1 (zh) 访问请求捕获方法、装置、计算机设备和存储介质
US20220255938A1 (en) Method and system for processing network resource access requests, and computer device
WO2019052059A1 (zh) 一种当前页面之间数据信息传递的方法及系统
CN108632130B (zh) 多终端聊天输入转移的方法、装置、电子设备和存储介质
CN107979517B (zh) 一种网络请求的处理方法及装置
JP2000172645A (ja) サーバコンピュータ及びサーバコンピュータにおける認証情報管理方法
CN110677417A (zh) 反爬虫系统及方法
CN111404804A (zh) 基于Swoole的即时通讯系统、方法、终端及介质

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17925281

Country of ref document: EP

Kind code of ref document: A1