如何在同一个域上为iframe设置cookie

时间:2013-02-12 16:14:56

标签: cookies session-cookies etherpad

我正在尝试在CMS Plone中集成etherpad-lite,遵循官方文档的示例1 http://etherpad.org/doc/v1.2.7/

Portal places the cookie "sessionID" with the given value on the client and creates an iframe including the pad.

除了cookie之外,一切顺利。阅读文档最好的实践似乎使etherpad-lite在特定路径下的同一域中。这就是我使用/ pad / path做的。

Plone方面如果没有创建会话,我创建了,我添加了一个cookie然后我正在重定向到同一页面,以确保cookie在浏览器中。

结果我的cookie被添加到主页面的请求中,但不是if iframe请求。

以下是主页面和iframe的Google Chrome控制台网络标签页:

http://toutpt.makina-corpus.org/en/images/cookie-in-iframe/

与setCookie对应的代码位于https://github.com/toutpt/collective.etherpad/blob/master/collective/etherpad/archetypes.py#L100

0 个答案:

没有答案
相关问题