網路上查了一下,原因大致上是因為,早期IE對於安全性問題,他們有阻擋關於內嵌iframe 的cookie 機制,網路上說解法是在</head> 前加入
<meta http-equiv="P3P" content='CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"' />
但是我發現,根本就沒有作用…哈哈~
之後就改用一個做法就是在Global.asax 中的 Application_BeginRequest 加入這一段:
protected void Application_BeginRequest(object sender, EventArgs e)
{
HttpContext.Current.Response.AddHeader("p3p", "CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");
}