Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and device for obtaining cookies

A server and main domain name technology, applied in the field of obtaining cookies, can solve the problems of users' personal privacy leakage, etc., to achieve the effect of ensuring personal privacy security, solving personal privacy leakage, and avoiding random distribution

Active Publication Date: 2019-09-17
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a method and device for obtaining cookies, which not only enables the advantages of the convenience of cookies to visit websites to be used again, but also solves the problem of leaking personal privacy of users

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for obtaining cookies
  • A method and device for obtaining cookies
  • A method and device for obtaining cookies

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] In order to prevent the personal privacy of the user visiting the website from being leaked, this embodiment adds a connection identifier to the connection request. When the server recognizes the connection identifier, it obtains a cookie that can directly log in to its own server according to the connection identifier, avoiding other website server cookies. Among them, Cookie refers to the data stored on the user's local terminal by some websites in order to identify the user's identity and track the session. This embodiment fundamentally solves the problem of leakage of personal privacy caused by cookies.

[0036] refer to figure 1 , figure 1 The flow chart of the method for obtaining Cookie provided in this embodiment specifically includes:

[0037] Step 101: Send a connection request to any server, where the connection request includes a connection identifier.

[0038] In this embodiment, before obtaining the Cookie, first establish a connection with the server t...

Embodiment 2

[0055] Since the method for obtaining the Cookie can be applied to the browser, the method for obtaining the Cookie is introduced by taking the mobile phone browser as an example. refer to figure 2 , figure 2 For the flow chart of the method for obtaining Cookie applied to the mobile phone browser, this embodiment accesses the A server through the mobile phone browser, and obtains the Cookie that can log in to the A server. Methods can specifically include:

[0056] Step 201: The mobile phone browser sends a connection request to server A, and the connection request includes a connection identifier.

[0057] In this embodiment, the user sends a connection request to server A through a mobile phone browser, wherein the connection request includes a connection identifier.

[0058] In actual operation, the connection request may be a data packet sent following the HTTP protocol, where the connection identifier is a DNT (Do Not Track) field in the HTTP protocol.

[0059] Ste...

Embodiment 3

[0071] The embodiment of the present invention will be described from the perspective of the device for obtaining Cookie. The device for obtaining Cookie can be integrated in a client, and the client can be loaded in a terminal. Specifically, the terminal can be a smart phone, a tablet computer, an e-book Reader, MP3 (Moving Picture Experts Group Audio Layer III, moving picture experts compressed standard audio layer 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, moving picture experts compressed standard audio layer 3) player, laptop Laptops and desktops and more.

[0072] refer to image 3 , image 3 The structural diagram of the device for acquiring Cookie provided in this embodiment, the device may specifically include:

[0073] The first sending module 301 is configured to send an access request to any server, where the access request includes a request identifier;

[0074] The first receiving module 302 is configured to receive the cookie obtained accord...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a Cookie obtaining method and device. The Cookie obtaining method comprises the steps of sending a connecting request to any one server, wherein the connecting request includes a connection identifier; receiving a Cookie obtained according to the connection identifier, wherein the Cookie includes a domain name; obtaining a main domain name of the server; judging whether the domain name of the Cookie includes the main domain name or not, saving the Cookie if the Cookie includes the main domain name, and deleting the Cookie if the Cookie does not include the main domain name. The connection identifier is added into the connecting request, and the Cookie of the server can be directly logined according to the connection identifier after the server identifies the connection identifier. In addition, the domain name in the obtained Cookie is compared with the main domain name, so that optional Cookie release of other web servers is avoided, the personal privacy disclosure problem caused by the Cookie is solved fundamentally, and personal privacy safety is ensured.

Description

technical field [0001] The present invention relates to the field of data processing, in particular to a method and device for acquiring cookies. Background technique [0002] Cookies, sometimes used in its plural form Cookies, refer to the data stored on the user's local terminal by some websites in order to identify the user's identity and perform session tracking. A cookie is a data packet generated by the website server when a user visits a website server and sent to the user's local terminal (usually a browser). When the user needs to visit the same website next time, the cookie of the website is directly sent to the corresponding server. However, the opposite side to the convenience of visiting the website brought by cookies also exists objectively. When the user visits the website, the server has the initiative to send the cookie data packet to the user, that is to say, the server can decide to send the cookie to the user. The content contained in the data packet ca...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/06H04L29/12
Inventor 张杭韩梓鑫
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products