使用iframe Session/cookie 丢失

u011209390 2013-11-12 08:28:59
由于A服务器里面是PHP项目不支持。net
在A服务器里面建立了index.html页面
<iframe src="www.aaaaa/index.aspx/" width="100%" height="943px" frameborder="0" scrolling="no">
index.aspx是B服务器里面的项目
index.aspx里面需要传参数 index_2.aspx页面接收不到index.aspx传过来的参数
使用Session 和cookie在IE和苹果里面接收不到报错:

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:




An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:





[NullReferenceException: Object reference not set to an instance of an object.]
acti_index.sub_vcode_Click(Object sender, EventArgs e) +602
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

其他浏览器正常。IE设置隐私拉下可以。问题是不可能让每个用户去啦吧。
在网上也看了好几种方法解决不了。求大神指点
HttpContext.Current.Response.AddHeader("p3p", "CP=\""IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""")
Response.AddHeader("P3P", "CP=CAO PSA OUR");多加在B服务页面里面没用
...全文
613 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
天_龙 2013-11-12
  • 打赏
  • 举报
回复
同样的问题缠绕了好久了

62,025

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧