加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ajax请求中session无效的问题

发布时间:2020-12-15 21:03:18 所属栏目:百科 来源:网络整理
导读:遇到一个问题,发现网站中的所有ajax在某个服务器中的session总是无效,后来同事查了资料,原来php的配置文件中有个选项: ; Whether or not to add the httpOnly flag to the cookie,which makes it inaccessible to browser scripting languages such as J

遇到一个问题,发现网站中的所有ajax在某个服务器中的session总是无效,后来同事查了资料,原来php的配置文件中有个选项:


; Whether or not to add the httpOnly flag to the cookie,which makes it inaccessible to browser scripting languages such as JavaScript.
session.cookie_httponly =


当设置了这个值为1后,所有的ajax请求的session将无法识别。


[文章作者]曾健生

[作者邮箱]zengjiansheng1@126.com

[作者QQ]190678908

[博客]http://blog.csdn.net/newjueqi

http://blog.sina.com.cn/h6k65

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读