52ky 发表于 2022-4-28 08:37:49

让我知道你是谁:HTTP的Cookie机制.pdf

在之前的第 13 课和第 14 课中,我说过 HTTP 是“无状态的”,这既是优点也是缺点。 优点是服务器没有状态差异,可以轻松集群,缺点是不能支持需要状态记录的事务操作。
好在 HTTP 协议是可扩展的,后来发明的 Cookie 技术为 HTTP 添加了“内存能力”。
什么是饼干?
不知道大家有没有看过克里斯托弗·诺兰执导的经典电影《记忆碎片》,里面的主人公患有短期健忘症,记不起最近发生的事情。

(In previous lessons 13 and 14, I said that HTTP is "stateless", which is both an advantage and a disadvantage. The advantage is that the server has no state difference and can be easily clustered. The disadvantage is that it can not support transaction operations requiring state records.Fortunately, the HTTP protocol is extensible, and the cookie technology invented later adds "memory capability" to http.What are cookies?I wonder if you have seen the classic film "memory fragments" directed by Christopher Nolan, in which the protagonist suffers from short-term amnesia and can't remember what happened recently.)




页: [1]
查看完整版本: 让我知道你是谁:HTTP的Cookie机制.pdf