Sent more than one cookie

Maxim Dounin mdounin at mdounin.ru
Wed Aug 11 05:36:54 MSD 2010


Hello!

On Tue, Aug 10, 2010 at 01:28:22PM -0300, Tomas Zulberti wrote:

> Hi. I have a problem with the cookie logging. I am using:
> sent_http_set_cookie to log the sent cookies.
> When I run:
> curl -i http://MY_SERVER
> HTTP/1.1 302 Moved Temporarily
> Server: nginx/0.7.65
> Date: Tue, 10 Aug 2010 15:52:54 GMT
> Connection: keep-alive
> Set-Cookie: first_cookie="FIRST COOKIE" ......
> Set-Cookie: second_cookie="SECOND COOKIE" ....
> Content-Length: 0
> 
> But in the log it only appears: "first_cookie=FIRST_COOKIE ...." and
> it nevers appears the second cookie. Any help?

No.  Only first header is available via $sent_http_* variable (the 
same applies to $http_* and $upstream_http_*).  

Maxim Dounin



More information about the nginx mailing list