简体   繁体   English

如何使iframe会话从父页面保持活动状态

[英]How to keep iframe session alive from parent page

I want the iframe's session to remain alive when there is an activity on the parent page. 当父页面上有活动时,我希望iframe的会话保持活动状态。 The solution I was thinking to ping an image url of iframe's domain from the parent page whenever there is some activity on the parent page. 每当父页面上有活动时,我都想从父页面ping iframe域的图像URL的解决方案。 This is an ASP.Net application hosted on IIS 7. 这是IIS 7上托管的ASP.Net应用程序。

My question is does pinging the iframe's domain from parent page will update the iframe's session ? 我的问题是从父页面ping iframe的域是否会更新iframe的会话?

通过在父级的主体上附加单击处理程序并对子域上的任何图像发出get请求,可以实现此目的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM