4
我使用PHP5.3,Apache 2.2和Zend Framework 1.11,当我用curl做请求时,我得到了两个带有两个不同会话ID的Set-Cookie头。为什么我的头中有两个会话ID?
任何想法?
> POST /api/register HTTP/1.1
> Authorization: Basic Ymd1ZXJ0eQ==
> Host: api.domain.tld
> Accept: */*
> Content-Length: 66
> Content-Type: application/x-www-form-urlencoded
>
< HTTP/1.1 200 OK
< Date: Wed, 07 Dec 2011 13:27:07 GMT
< Server: Apache
< X-Powered-By: PHP/5.3.8
< Set-Cookie: SESSID=vtvackh55bj1up3ouoq4bhk545; expires=Thu, 06-Dec-2012 19:15:53 GMT; path=/
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< Pragma: no-cache
< Set-Cookie: SESSID=79a1g98e0pkqlq8fo7elpe9492; expires=Thu, 06-Dec-2012 19:15:53 GMT; path=/
< Vary: Accept-Encoding,User-Agent
< Content-Length: 128
< Content-Type: application/json
可能想看看那个接受评级 –
请注意,我没有问题接受答案,直到我有足够好的答案...接受的答案不仅仅是一个分数增加;) – Trent
有没有任何人都可以在不看到PHP代码的情况下回答这个问题,因为它涉及到cURL查询。 –