Cookie内容摘要
来源:互联网 发布:大数据分析挖掘需求 编辑:程序博客网 时间:2024/04/30 10:55
学习Cookie必须要阅读rfc2109.txt和rfc2965.txt.
To prevent possible security or privacy violations, a user agent
rejects a cookie (shall not store its information) if any of the
following is true:
* The value for the Path attribute is not a prefix of the request-
URI.
* The value for the Domain attribute contains no embedded dots or
does not start with a dot.
* The value for the request-host does not domain-match the Domain
attribute.
* The request-host is a FQDN (not IP address) and has the form HD,
where D is the value of the Domain attribute, and H is a string
that contains one or more dots.
Examples:
* A Set-Cookie from request-host y.x.foo.com for Domain=.foo.com
would be rejected, because H is y.x and contains a dot.
* A Set-Cookie from request-host x.foo.com for Domain=.foo.com would
be accepted.
* A Set-Cookie with Domain=.com or Domain=.com., will always be
rejected, because there is no embedded dot.
* A Set-Cookie with Domain=ajax.com will be rejected because the
value for Domain does not begin with a dot.
上段英文描述了浏览器在什么情况下拒绝接收服务器端Cookie情景!
Cookie的数据结构:key,path,domain,max-age
Cookie 的隶属关系: Cookie先属于path,再属于domain。
使用事项:
- 避免在上级path和下级path中使用相同名字的cookie;
- 如果要在下级path中修改上级path要制定cookie的path关系;
- 在域的概念上,子域可以给父域设置cookie;反之不成立。
待续
- Cookie内容摘要
- 内容摘要
- 故障诊断专家系统研究-----内容摘要
- 故障诊断专家系统研究-----内容摘要
- 故障诊断专家系统研究-----内容摘要
- 故障诊断专家系统研究-----内容摘要
- 故障诊断专家系统研究-----内容摘要
- 故障诊断专家系统研究-----内容摘要
- 【内容摘要】什么是SDRAM
- 【内容摘要】什么是计算机构架
- 【内容摘要】什么是存储器
- ORACLE 阅读内容摘要1
- 创建网站的 RSS 内容摘要
- 创建网站的 RSS 内容摘要
- 创建网站的RSS内容摘要
- 程序人生演讲内容摘要 ---侯捷
- 博客内容摘要及阅读顺序
- 《视觉SLAM十四讲》内容摘要
- 美迪网站推广教你怎样写原创文章
- O'Reilly's CD bookshelfs
- SpringMVC特别的实现类
- Javascript中匿名函数的多种调用方式总结
- MFC应用程序添加背景音乐
- Cookie内容摘要
- Java 乱码的解决方法
- [Nginx] 在Linux下的启动、停止和重加载
- ubuntu在新建面板上显示输入法状态,网络状况,音量大小,时间等信息的方法
- jQuery Plugin 好用的jQuery插件
- 计算机之间的数据通讯
- C#中File静态类及其常用静态方法实例详解
- mongo 语句
- Oracle存储过程定义和优点与函数区别