ASP.NET MVC-丢失会话状态
我有一个MVC页面(.NET 4.7.2)。该页面具有部分视图。部分视图包含第三方的iframe。
[MVC Page [Partial View [iFrame to third party]]]
用户将与第三方iframe托管的表单进行交互。数据提交给第三方。第三方处理提交后,iframe通过预定的URL将数据发布到我的应用程序。因此,iframe开始显示第三方表格,然后将其响应寄回我的应用程序 - 全部在iframe中。
但是,从第三方接收帖子的MVC页面无法访问应用程序的会话状态。就像MVC应用程序将初始MVC页面视为与iframe中的返回页面不同的会话一样。它是同一应用,相同的域,相同的浏览器。
为什么IFRAME中的MVC页面无法访问同一会话?
如何访问会话信息?
谢谢!
I have an MVC page (.net 4.7.2). That page has a partial view. The partial view contains an iFrame to a third party.
[MVC Page [Partial View [iFrame to third party]]]
A user will interact with a form hosted by the third party iFrame. Data is submitted to the third party. After the third party processes the submission, the iFrame posts data to my application via a predetermined URL. So the iFrame starts off displaying the third party form, then posts its response back to my application - all within the iFrame.
However, The MVC page receiving the post from the third party doesn't have access to the session state of the application. It's like the MVC app is treating the initial MVC page as a different session than the return page within the iFrame. It's the same app, same domain, same browser.
Why can't the MVC page in the iFrame access the same session?
How can I access the session information?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论