饼干是如何工作的? [英] How cookies work?

查看:30
本文介绍了饼干是如何工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道浏览器(即 Firefox )和网站的交互.

I wanted to know the interactions of a browser (i.e. Firefox ) and a website.

当我向登录表单提交我的用户名和密码时,会发生什么?我认为该网站向我发送了一些 cookie 并通过检查这些 cookie 来授权我.

When I submit my user name and password to the login form, what happens? I think that website sends me some cookies and authorizes me by checking those cookies.

cookie 有标准结构吗?

Is there a standard structure for cookies?

另外,如果我想使用该 cookie,我如何查看发送到我的浏览器的特定 URL 的 cookie?

Also, how I can see the cookies of specific URL sent to my browser if I want to use that cookie?

推荐答案

了解 Cookie

Cookie 由服务器提供给浏览器.浏览器将 cookie 显示为仅适用于最初提供 cookie 的域.

Cookies are given to a browser by the server. The browser reveals the cookies as applicable only to the domain that provided the cookie in the first place.

cookie 中的数据允许服务器继续对话,可以这么说.如果没有 cookie,服务器会将浏览器视为首次访问者.

The data in the cookie allows the server to continue a conversation, so to speak. Without the cookie, the server considers the browser a first-time visitor.

查看这些以了解浏览器 cookie

Have a look at these to know about browser cookies

了解浏览器 cookie

http://internet-security.suite101.com/article.cfm/understanding_computer_browser_cookies

http://www.willmaster.com/library/cookies/understanding-cookie.php

https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-22_11-6063884.html

这篇关于饼干是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆