限制访问页面在 IE(8 和 7)中不可见,typo3 中的 cookieDomain 变量存在问题
FE 限制访问页面在 Firefox 中工作正常,但在 IE 和 Chrome 中则不然。 IE 上的 Cookie 域设置不正确。我遇到了一些补丁,它似乎不起作用。
我当前的 localconf.php 配置是:
$TYPO3_CONF_VARS['SYS']['cookieDomain'] = 'www.domain.com';
我也尝试了domain.com。
我遇到了许多关于此问题的错误报告。 http://bugs.typo3.org/view.php?id=11858
在谷歌浏览器中我也面临着同样的问题。
没有一个解决方案对我有用。
cookie域应该配置什么?
Typo3版本:4.4.9 PHP版本5.2.6-1+lenny13
FE Restricted access page works fine with Firefox, but in IE and chrome it not. Cookie domain is not set properly on IE. I come across with some patch , it not seems to be work.
My current localconf.php configuration is:
$TYPO3_CONF_VARS['SYS']['cookieDomain'] = 'www.domain.com';
i tried domain.com also.
i come across many bugs reported regarding this issue. http://bugs.typo3.org/view.php?id=11858
In google chrome also i am facing the same problem.
Non of the solution works for me.
What should be the configuration for cookie domain.
Typo3 Version: 4.4.9 PHP Version 5.2.6-1+lenny13
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的 cookieDomain 配置是正确的。更稳定、更通用的版本如下所示:
该版本也适用于多网站/多域设置。
如果您仍然遇到问题,则应检查服务器响应中发送的 Set-Cookie 标头:将 FF 与附加组件“实时 HTTP 标头”(LHh) 一起使用。首先删除您域的任何现有 cookie(Firefox:工具 –> 选项 –> 隐私 –> 删除单个 cookie –> 选择与您的域匹配的所有条目 –> 点击“删除 cookie”),现在打开 LHh 窗口(工具菜单,最后一个条目),保持打开状态并在 FF 中打开您的网站。然后检查第一个 GET 请求后从服务器返回的响应。它应该以
这样的开头并包含一行
检查该域是否是您调用该网站所用的域,并且路径是否为根(“/”)。
如果这一切都正确,则您的登录问题可能与 cookieDomain 设置无关。
Your cookieDomain config is correct. A more stable and versatile version would look like this:
This one also works in multi-website / multi-domain setups.
If you still experience problems, you should check the Set-Cookie header that is sent in the server response: Use FF with Add-on "Live HTTP headers" (LHh). First delete any existing cookies for your domain (Firefox: Tools –> Options –> Privacy –> remove individual cookies –> select all entries matching your domain –> hit "remove cookies"), now open the LHh window (tools menu, last entry), keep it open and open your website in FF. Then inspect the response that comes back from the server after the first GET request. It should start with
and should contain a line like this
Check whether the domain is the one that you are calling the website by and the path is root ("/").
If this is all correct, your login problem is probably not connected to the cookieDomain setting.