Internet Explorer 11不会在站点上设置cookie

编程入门 行业动态 更新时间:2024-10-15 20:24:02
本文介绍了Internet Explorer 11不会在站点上设置cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

出于某种原因,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.

在其他浏览器上,这是完美的。网站网址为 www.tc.mk (也是 www.tc.mk )

On other browsers this is working perfectly. The site URL is www.tc.mk (also www.tc.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

本文发布于:2023-11-07 23:46:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1567763.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:会在   站点   Explorer   Internet   cookie

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!