遇到一个问题,发现网站中的所有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.youkuaiyun.com/newjueqi