惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed
L
LangChain Blog
C
Check Point Blog
F
Fortinet All Blogs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Blog — PlanetScale
Blog — PlanetScale
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
Recent Announcements
Recent Announcements
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
N
Netflix TechBlog - Medium
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Microsoft Azure Blog
Microsoft Azure Blog
U
Unit 42
The Cloudflare Blog
月光博客
月光博客
有赞技术团队
有赞技术团队
G
Google Developers Blog
Vercel News
Vercel News

博客园 - 蔡春升

Oracle 取余取整函数 生活永远这样,在自己放松自己的时候,会让你摔个跟头,忍耐生老练,老练生盼望 js 代码分析工具 QR code 二维条码 再读王永庆卖米的故事 彼得林奇 投资方法 如何访问google docs js 获取request的方法 社会化网络观后感 mysql ExecuteReader问题 互联网广告形式 概念过滤 用PDCA培养数据收集整理分析能力 韩寒:请放过我们的食油 精准化技术在互动营销中的应用 oracle 统计某个表的列数 IComparer<T> 安装WAMP怎么测试shopex 常见的WAMP集成环境
IE里Iframe的Cookie问题解决办法总结(转)
蔡春升 · 2011-06-30 · via 博客园 - 蔡春升

ie   在对iframe里面的页面写Cookie的时候有一些安全限制,导致读取Cookie不成功.

只需要设置 P3P HTTP Header

通过在代码上加Response.AddHeader("P3P", "CP=CAO PSA OUR")或者在Window服务中将ASP.NET State Service 启动。

也可以在Application_BeginRequest中设置全局的p3p header

protected void Application_BeginRequest(Object sender, EventArgs e)

 {

  HttpContext.Current.Response.AddHeader("p3p","CP=\"CAO PSA OUR\"");

}

参考:

http://blog.sina.com.cn/s/blog_4dd475390100lyin.html