Internet Explorer 11不会在站点上设置cookie [英] Internet Explorer 11 won't set cookies on a site
问题描述
出于某种原因,IE11(仅IE11,与其他IE9和IE10一起测试)不会在我一直在工作的网站上创建会话。所以这意味着诸如站点登录之类的基本功能将无效。
For some reason IE11 (only IE11, tested with other IE9 and IE10) won't create a session on a site i've been working on. So this means that a basic functionality such as site login won't work.
在其他浏览器上,这是完美的。网站网址为 http://www.tc.mk (也是 http://www.tc.com.mk )
On other browsers this is working perfectly. The site URL is http://www.tc.mk (also http://www.tc.com.mk)
我研究了一下,发现IE不适用于域名下划线..但我的域名没有,所以可能是什么问题?
谢谢!
I researched a bit and found out that IE won't work with domains with underscore.. but my domain doesn't have one so what could be the problem? Thanks!
推荐答案
IE 11不喜欢cookie中的域值。保留为空。
IE 11 does not like a domain value in the cookie. Leave it empty.
IE 11错误:
Set-Cookie: kohanasession=foobar; expires=Tue, 09-Apr-2016 01:01:01 GMT; path=/; domain=tc.mk; httponly
为IE 11更正:
Set-Cookie: kohanasession=foobar; expires=Tue, 09-Apr-2016 01:01:01 GMT; path=/; httponly
这篇关于Internet Explorer 11不会在站点上设置cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!