在弹出的失去asp.net会话。只有在IE浏览器,只对某些用户 [英] Losing asp.net session in popup. Only in IE and only for some users

查看:140
本文介绍了在弹出的失去asp.net会话。只有在IE浏览器,只对某些用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个集成的iframe一个asp.net网页。从这个IFRAME我叫内对window.open打开一个弹出窗口。弹出窗口的URL是绝对的,但在同一个域中。

I have an asp.net web page with an integrated iframe. From within this iframe i call window.open to open a popup window. The popup url is absolute but within the same domain.

有关使用Internet Explorer(多个版本)的用户大约1%的asp.net会话对象在弹出窗口中丢失(空)。

For approximately 1% of users using Internet Explorer (multiple versions) the asp.net session object is lost (null) in the popup window.

我曾尝试收集设置信息,从一组用户,但没有结果确定的模式。一种理论是,他们都Citrix客户端,但事实并非如此。

I have tried gathering setup information to identify a pattern from a group of users but with no result. A theory was that they were all Citrix clients but that was not the case.

有没有人遇到过类似的事情,解决了吗?

Has anybody experienced something similar and solved it?

推荐答案

按照这里的准则: HTTP ://www.w3.org/P3P/details.html

您应该构建自己的P3P策略。

You should construct your own P3P policy.

举个例子,如果你添加到您的Global.asax中,它工作在IE8:

As an example, if you add this to your Global.asax, it works in IE8:

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\"");
}

BUT !!! 不只是复制上面的示例作为政策必须反映在您的网站实际的个人信息保护。否则,当浏览器相比,你已经表示什么验证内容/行为,这可能有后来的影响。

BUT!!! don't just copy the above sample as the policy has to reflect your actual privacypolicy on your website. Otherwise this might have implications later when browsers validate your content/behaviour compared to what you have stated.

没有人想获得某些浏览器厂商列入黑名单,对吧?

No one would like to get blacklisted from certain browser vendors, right?

这篇关于在弹出的失去asp.net会话。只有在IE浏览器,只对某些用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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