简体   繁体   English

奇怪的请求,HTTP_COOKIE之前有一个逗号

[英]Strange request, there is one comma before HTTP_COOKIE

There is one comma, when tracking the request and var_dump $_SERVER. 跟踪请求和var_dump $ _SERVER时有一个逗号。 This caused the web user can not get information by session. 这导致Web用户无法按会话获取信息。 Why? 为什么? How can i sovle it. 我怎么能解决它。

[HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
[HTTP_ACCEPT_ENCODING] => gzip,deflate
[HTTP_ACCEPT_LANGUAGE] => zh-CN, en-US
[HTTP_ACCEPT_CHARSET] => utf-8, iso-8859-1, utf-16, *;q=0.7
[HTTP_COOKIE] => , FRONTEND=vkq1nq69lhequ5v1v7kor2sj71
[PATH] => /usr/local/bin:/usr/bin:/bin

To me the application sets multiple cookies with the same name, one of it with an empty key and an empty value. 对我来说,应用程序设置多个具有相同名称的cookie,其中一个带有空键和空值。

The browser receive the empty cookie and send it back the next request, thus having ", ..." instead of "key=value, ...". 浏览器接收空cookie并将其发送回下一个请求,因此具有“,...”而不是“key = value,...”。

I'd suggest you to inspect your application for wrong setcookie() and header('Cookie:') functions. 我建议你检查你的应用程序是否有错误的setcookie()和header('Cookie:')函数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM