Safari 5.1.5中iframe上缺少Cookie [英] Missing cookies on iframe in safari 5.1.5

查看:359
本文介绍了Safari 5.1.5中iframe上缺少Cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这只适用于Safari 5.1.4和5.1.5。

This is for Safari 5.1.4 and 5.1.5 only. It works on older Safari versions.

如果您访问:
http://gemal.dk/test/restob.html
,然后点击在iframe中获得在线预订的按钮

if you go to: http://gemal.dk/test/restob.html and click on the button you get a Online Booking inside a iframe

如果您点击一个绿色的一天,然后一个时间,您会看到一个您的会话已过期。

If you the click on a green day and then a time you are presented with a "Your session has expired".

如果您检查Cookie

If you check the cookies you dont have any cookies.

Safari拒绝会话Cookie,而且这种情况出现在Safari / Google问题上,Safari对第三方Cookie的要求越来越严格。版本5.1.4 +

Safari is rejecting the session cookies and this started around the Safari/Google issue where Safari became more strict about 3rd party cookies. Version 5.1.4+

我如何解决这个问题?如何在iframe中设置cookie?

How can I solve this? How can I set the cookies in the iframe?

我发送正确的P3P头。

I send the correct P3P headers. I've tried a lot of things I just cant get it working.

它适用于所有其他浏览器,而不是Safari 5.1.4 +

It works in all other browsers than Safari 5.1.4+

推荐答案

也许,以下链接将对您有所帮助。

Maybe ,The following link would be helpful to you .

http://www.reizbombardement.de/archives/safari-5-1-4- enforces-cookie-policy

Safari第三方Cookie iframe技巧不再工作?

当然,要设置Cookie您的域名和刷新开瓶器然后关闭,
你必须准备伪页面(例如... safari_cookie_fix.php)

Certainly, To set a cookie for your domain and refresh the opener and then closes, you must prepare dummy page(ex...safari_cookie_fix.php)

但是...
在我们的项目中,我们准备其虚拟页面为好看(不好可用性!)加载页面。

But... In Our project , We prepare its dummy page as Good-looking(Not bad usability!) loading page.

这篇关于Safari 5.1.5中iframe上缺少Cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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