浏览器cookie

Cookies — the tech-related variety — have been getting a bad rap lately. But they aren’t necessarily the demons that they’ve been portrayed to be.

Çookies -科技相关的品种-已经最近获得的坏名声。 但是它们不一定是被描绘成的恶魔。

As someone recently analogized to me, cookies are like having a door-to-door salesperson stop by your home, ask you some questions such as “What is your favorite color?” and “What’s your favorite food?” and writing your responses on a Post-It note and sticking that note on your front door. Then, other salespeople who stop by can read your responses and customize their products/ads to you.

正如最近有人模仿我一样,Cookie就像是一个挨家挨户的推销员在您家门口停下来,问一些问题,例如“您最喜欢的颜色是什么?” 和“您最喜欢的食物是什么?” 并将您的回复写在便利贴上,然后将其贴在前门上。 然后,其他路过的销售人员可以阅读您的回复并为您定制产品/广告。

Cookies encountered in browsers act similarly to that Post-It note. Companies and organizations use cookies to target and collect your preferences for product-placement and advertising purposes. They acquire your online preferences from studying your browser-based actions the sites you visit, searches you conduct, etc. On a technical level, cookies are merely key-value pairs stored within your internet browser. These are kept on file, so to speak, in the browser until the cookie expires.

在浏览器中遇到的Cookie的行为类似于该便笺。 公司和组织使用Cookie来定位和收集您对产品放置和广告目的的偏好。 他们通过研究您基于浏览器的操作,访问的网站,进行的搜索等来获得您的在线偏好。在技术层面上,Cookie只是存储在您的Internet浏览器中的键值对。 可以说,这些文件一直保存在浏览器中,直到cookie过期。

Besides the cookies that are associated with browsing habits, the most common example of a cookie is the shopping cart feature on an e-commerce site.

除了与浏览习惯相关的cookie外,cookie的最常见示例是电子商务网站上的购物车功能。

Let’s say that you’ve found a book on Barnes and Noble’s website that you want to buy. You add the book to your cart and are then given a visual indicator that your cart now contains one item.

假设您在Barnes and Noble的网站上找到了要购买的书。 您将书籍添加到购物车中,然后获得一个视觉指示器,表明您的购物车中现在包含一项。

Perhaps you’re unsure whether you want to buy the book and decide to think about it for a while. You leave the Barnes and Noble site, thus abandoning your cart, and navigate to your favorite news website. After reading the news, you decide that you really do want that book after all. So, back to the Barnes and Noble site you go, fully prepared to search again for the book and add it to your cart.

也许您不确定是否要购买这本书并决定考虑一会儿。 您离开了Barnes and Noble网站,从而放弃了购物车,并导航到您最喜欢的新闻网站。 阅读新闻后,您确定您确实确实想要那本书。 因此,回到您的Barnes and Noble网站,已经做好充分的准备,可以再次搜索该书并将其添加到购物车中。

Except that, when the page loads, you immediately notice the shopping cart icon because it shows that there’s an item in your cart already. After clicking the cart, you see that it is the book that you’d wanted. While it wouldn’t have been too laborious to search for and place the book into your cart again, it’s helpful that Barnes and Nobel remembered that you were interested in buying this book, enabling an even faster checkout.

除此之外,在页面加载时,您会立即注意到购物车图标,因为它显示您的购物车中已经有商品。 单击购物车后,您会看到它是您想要的书。 虽然搜索和将书重新放入购物车都不会太费力,但Barnes和Nobel记得您有兴趣购买这本书是很有帮助的,从而可以更快地结帐。

So, how did the Barnes and Noble site know to keep that particular book inside the shopping cart? A cookie, of course! When you first visit the site, a request is sent to the Barnes and Noble website server. When it responds to your computer, it sets a cookie to capture your unique user information. As a result, things such as your cart contents are captured for the duration of your browsing session, which is the actual term used to describe this duration. In other words, as long as you keep your browser open and don’t close out of it, the cookie will remain active and remember your cart’s contents until the cookie’s set expiration date.

那么,Barnes and Noble网站如何知道将特定书籍保留在购物车中? 当然是Cookie! 首次访问该站点时,会将请求发送到Barnes and Noble网站服务器。 当它响应您的计算机时,它会设置一个cookie来捕获您的唯一用户信息。 结果,在您的浏览会话持续时间内捕获了诸如购物车内容之类的东西,这是用于描述该持续时间的实际术语。 换句话说,只要您保持浏览器打开并且不关闭浏览器,cookie就会保持活动状态并记住您购物车中的内容,直到cookie设置的到期日期为止。

Below is a list of cookies identified from Barnes and Noble’s website. The green box highlights a single cookie’s information. Among the cookie’s details are the value assigned to the specific cookie, the domain to which it is attached, its specific path in the URL, and its expiration date.

以下是从Barnes and Noble网站识别的Cookie列表。 绿色框突出显示单个cookie的信息。 Cookie的详细信息包括分配给特定Cookie的值,其附加到的域,URL中的特定路径及其到期日期。

List of cookies used on bn.com
bn.com上使用的Cookie列表

I used an extension to access this list, but you can easily access the web page’s cookies list via the “Application” view in the developer tools.

我使用扩展名来访问此列表,但是您可以通过开发人员工具中的“应用程序”视图轻松访问网页的cookie列表。

Cookie的类型 (Types of Cookies)

Cookies are divided into two categories: “First-party cookies” and “third-party cookies”.

Cookie分为两类:“第一方Cookie”和“第三方Cookie”。

First-party cookies aim to provide a better user experience for users while they browse the web. They can store passwords and capture a user’s location and other details to enable easier and faster information retrieval.

第一方Cookie旨在为用户浏览网络时提供更好的用户体验。 他们可以存储密码并捕获用户的位置和其他详细信息,从而可以更轻松,更快地检索信息。

Third-party cookies, on the other hand, are the ones responsible for giving cookies the bad press they have been receiving. They typically involve tracking the user as they browse. This tracking can manifest via “ad retargeting”, which is essentially tailoring ads to the user based on the sites visited by the user. Another popular third-party cookie function utilizes social media plug-ins, which in turn enable the social media site to follow you as you peruse the internet. Information obtained from these types of cookies include not only the sites you visit but also details such as your location, the type of device that you’re using to access the site, etc.

另一方面, 第三方cookie是导致cookie受到不良影响的原因。 它们通常涉及在浏览时跟踪用户。 这种跟踪可以通过“广告重新定位”来体现,它实际上是根据用户访问的网站为用户量身定制广告。 另一个流行的第三方cookie功能使用社交媒体插件,当您仔细浏览Internet时,社交插件可以使社交媒体网站跟随您。 从这些Cookie类型获得的信息不仅包括您访问的站点,还包括诸如位置,用于访问该站点的设备类型之类的详细信息。

For companies using third-party cookies to track users’ behaviors and other information, it all boils down to making more money. So while you the user can not accept that cookies are used on a certain site, the company may not let you view their site in return.

对于使用第三方Cookie来跟踪用户行为和其他信息的公司而言,这一切都可以归结为赚更多钱。 因此,尽管您不能接受用户在特定站点上使用cookie,但是公司可能不会让您查看其站点。

On one hand, cookies can be viewed as very helpful when browsing and communicating on the internet. On the other hand, what a site does with the information it collects via cookies can perpetuate their negative reputation. At the end of the day, the least a user can do is to be informed about cookies and things to look for when surfing the internet.

一方面,在Internet上浏览和交流时,cookie被视为非常有用。 另一方面,网站如何处理通过Cookie收集的信息可能会使他们的负面声誉永久化。 归根结底,用户要做的至少是要了解有关cookie和浏览互联网时要查找的内容的信息。

翻译自: https://medium.com/swlh/browser-cookies-foe-or-friend-703c23772ca3

浏览器cookie


http://www.taodudu.cc/news/show-8184356.html

相关文章:

  • The Open Group企业架构副总裁兼亚太区总经理克里斯·福德独家专访
  • 【前沿】Nature | Eva:基于AI强化学习的COVID-19检测判断模型
  • 2024级管理类联考之英语二2200核心词汇(第七天)
  • 软件测试工程师该怎么做自己的职业规划呢
  • 没有互联网的世界一隅
  • 风雪一隅 php,科学网-不谋全局者不足谋一隅-肖建华的博文
  • PWA 一隅
  • elasticsearch理论、集群、分词器、head插件、常用命令
  • elasticsearch理论、集群、常用命令、插件使用
  • ES-elasticsearch
  • 《移动互联网创新应用》研习班(一)
  • 油猴脚本的安装和使用
  • 2021级新生个人训练赛第23场 问题 A: 朋友
  • 冀教版四年级计算机教案,冀教版四年级信息技术教案
  • Day2.数据可视化-基本图像绘制
  • python导入鸢尾花数据集_用Python进行K次交叉验证,探索鸢尾花数据集(含代码)...
  • 西交大软件工程考研是c语言,20菜鸡西交软件工程初复试经验分享
  • 和计算机交朋友 ppt,第2课  与计算机交朋友
  • 十五、Guard ring
  • Windows 0环和3环通信方式
  • 酒醉后认错人乱了心,男人动了情,趁虚而入的温柔难自抑
  • 美味豆浆 打造甜蜜温柔小女人
  • 我很温柔~
  • 我曾无比温柔爱过你。
  • 控制情绪,温柔说话
  • 一低头的温柔
  • 温柔的狗与女孩
  • 树莓派3b安装usb无线网卡要点大全
  • 专利申请的条件
  • 零基础学习 AI 绘画的进阶之路 · 起始篇

浏览器cookie_浏览器Cookie的敌人或朋友相关推荐

  1. 微信内置浏览器中的cookie很诡异呀

    微信内置浏览器中的cookie很诡异呀 这是设置和删除COOKIE的代码 function set_cookie($var ,$value = '' ,$expire = 0){ $path = '/ ...

  2. 手机浏览器无法获取COOKIE的原因

    为什么80%的码农都做不了架构师?>>>    手机浏览器上无法使用cookie,肯能是 1. 浏览器禁用 COOKIE ,这个简单开启即可. 2. 可能是手机所在时区有问题,将CO ...

  3. JS判断 浏览器 是否禁用Cookie

    该属性是一个只读的布尔值. 语法:navigator.cookieEnabled 如果浏览器启用了cookie,该属性为true.如果禁用了cookie,则值为false.实例1: 检测浏览器是否启用 ...

  4. Web安全笔记-Fidder与浏览器找关键Cookie(Cookie劫持前的准备)

    目录 使用Fiddler的Replay and Edit找关键Cookie 使用浏览器找关键Cookie 使用Fiddler的Replay and Edit找关键Cookie 如下图: 通过修改Coo ...

  5. php微信浏览器清空cookie,微信内置浏览器中的cookie很诡异呀

    微信内置浏览器中的cookie很诡异呀 这是设置和删除COOKIE的代码 function set_cookie($var ,$value = '' ,$expire = 0){ $path = '/ ...

  6. 微信php 客户端cookie,微信内置浏览器中的cookie很诡异呀

    微信内置浏览器中的cookie很诡异呀 这是设置和删除COOKIE的代码 function set_cookie($var ,$value = '' ,$expire = 0){ $path = '/ ...

  7. 解决新版chrome浏览器SameSite属性cookie拦截问题

    解决新版chrome浏览器SameSite属性cookie拦截问题 问题现象: 由于升级了新版chrome浏览器后,发现系统正常iframe嵌套.AJAX,Image从以前的跨站会发送三方 Cooki ...

  8. 浏览器禁用了cookie怎么办

    前言 在web开发过程中,cookie是我们常用的功能:最基本的用来存储服务端返回的jsessionid来识别用户,甚至保存其它更多的客户信息.假如客户端浏览器禁用了cookie,将会导致很多基于co ...

  9. 浏览器手动设置Cookie

    浏览器手动设置Cookie js代码:document.cookie="{KEY}={Value}": 可多次执执行.

  10. Cookie编程基础:检查浏览器是否接受Cookie

    Cookie编程基础:检查浏览器是否接受Cookie 提要:一种确定浏览器是否接受 Cookie 的方法是先编写一个 Cookie,然后再尝试读取这个 Cookie.如果不能读取这个Cookie,则可 ...

最新文章

  1. Something needs to be forgotten.
  2. 【Android 逆向】Android 进程简介 ( Android 应用启动流程 )
  3. UML类图关系(泛化 、继承、实现、依赖、关联、聚合、组合)
  4. cesium billboard 设置距离控制可见度
  5. MySQL官方备份_Mysqlbackup 备份详解(mysql官方备份工具)
  6. php 当地时间,PHP UTC到当地时间
  7. zookeeper使用和原理探究(一)
  8. Filter过滤器的生命周期
  9. R语言︱文本挖掘——词云wordcloud2包
  10. IDE工具的[多行光标编辑模式]
  11. 巅峰对决 竞逐百万大赛 | 2019数字中国创新大赛第二批赛题强势来袭
  12. 传统蒙文字体_关于传统蒙古文网页的国际标准编码及字体处理技术
  13. 绿色版飞信LibFetion提示用户密码错误的解决办法,直接改用飞信号登录即可
  14. 嵌入式就业去哪?中国10大军工央企,1000+单位!史上最全!
  15. smartPrinter安装报错
  16. linux 改变用户组、文件拥有者、文件属性
  17. 【经验贴】本科生毕业论文答辩经验
  18. linux系统修改Mac地址
  19. matlab右下方箭头,matlab绘制箭头arrow
  20. 第一章-问题求解策略-LA4234-Binary Clock

热门文章

  1. 2020年壹月份生活随笔
  2. 一句话概括下spring框架及spring cloud框架主要组件
  3. 中国岩土工程行业发展策略与前景规划分析报告2021年版
  4. Golang学习+深入(一)
  5. Chapter2 : Machine Learning Applied to the Modeling of Pharmacological and ADMET Endpoints
  6. 中国iOS开发者生存现状大调查:3成靠苹果7成难生存
  7. 《IT老外在中国》第12期:赛门铁克大中华区掌门梅正宇谈“安全观”
  8. 1. A Primer on Artificial Intelligence Algorithms: 全面地理解AI的概念、算法以及各类算法在实际工程中具体的应用
  9. java date详解_最新Java中Date类型详解
  10. 【11.11】捉虫令已经启动!