5

iframe我的网页中有一个。它在 FF 和 Chrome 中运行良好,但在 Safari 中运行不正常(我使用的是 Safari 6.0)

这是我的代码:

<html>  
    <head>  
        <title>Pengower</title>     
    </head>  
    <body>  
        <div id="container">  
            <iframe name="news" id="news"   
                src="http://www.penapplications.net/ImogenApps/?Pengower:CRM:Pengower_News">  
            </iframe>  
       </div><!--end container div-->  
    </body>  
</html>

有趣的是,如果我访问srcurl 然后访问iframe页面,则iframe正确显示内容,但如果我只是访问iframe页面而不访问srcurl 页面,它不会显示内容。

有任何想法吗?

4

2 回答 2

6

iframe似乎正在重定向到一个中介页面(penDummyLogon.aspx)它试图自动将表单提交到最终页面(main.aspx并设置一个 cookie。

由于这种设置 cookie 的方法在最近的 Safari 版本中似乎已被阻止,因此用户在没有 cookie 的情况下到达了最终页面。main.aspx似乎无法处理丢失的 cookie,因此无法加载其预期内容。

有关此主题的更多信息,请参阅在 Safari 中的 iframe 中设置第三方 cookie 的技术是否仍然有效?Safari 3rd 方 cookie iframe 技巧不再起作用?

于 2012-12-31T20:37:44.507 回答
0

第三方 cookie 在 safari.but 中不起作用,但在 asp.net 中,您可以通过使用无 cookie 会话来实现这一点。

有关更多信息,请参阅此链接http://msdn.microsoft.com/en-us/library/aa479314.aspx

于 2013-03-16T22:12:58.167 回答