Facebook iframe不工作在IE;会话/登录问题? [英] Facebook iframe not working in IE; session/login issue?

查看:186
本文介绍了Facebook iframe不工作在IE;会话/登录问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Facebook画布iframe应用程式发生问题。

I have an issue with my Facebook canvas iframe application.

我使用工作阶段建立一个简单的问卷式应用程式。每个页面都有一个问题,当表单提交时,答案存储在会话数组中,页面编号加1,然后显示下一个问题。简单的东西。

I'm using sessions to build a simple questionnaire-style application. There's a question on each page, when the form is submitted the answer is stored in a session array, and the page number is incremented by one, which then displays the next question. Simple stuff.

在Internet Explorer中,页面更改会显示通过另一个页面更改,使会话无效,并重新开始。我已搜索和搜索,但似乎找不到此行为的原因。

In Internet Explorer, on page change it appears to go through another page change which invalidates the session, and starts all over again. I've searched and searched, but can't seem to find the cause of this behaviour.

我已将应用程序的源代码放置在 http://gist.github.com/613083 。该应用使用Facebook提供的标准PHP SDK,网址为: http://www.github.com/facebook / php-sdk

I've placed the source code of the app at http://gist.github.com/613083. The app is using the standard PHP SDK provided by Facebook at http://www.github.com/facebook/php-sdk.

推荐答案

您可能遇到第三方Cookie问题。

You might be experiencing a 3rd party cookie issue. If you are caught in a redirect loop this is probably the case.

在php中的解决方案,添加:

Solution in php, add this:

header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');

这对我来说是正确的。我有一个讨厌的重定向问题。

This cleared it right up for me. I was having a nasty redirect issue.

这允许跨域cookie工作的页面,因为cookie是由Facebook设置为您的iFrame IE必须告诉没关系。

This allows cross domain cookies to work for the page, as the cookie is being set for Facebook by your iFrame IE has to be told it's ok.

这篇关于Facebook iframe不工作在IE;会话/登录问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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