# Sent more than one cookie

**URL:** <https://www.ruby-forum.com/t/sent-more-than-one-cookie/193071>\
**Category:** NGINX\
**Created:** [August 10, 2010, 6:29pm UTC](https://www.ruby-forum.com/t/sent-more-than-one-cookie/193071 "2010-08-10T18:29:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomas\_Zulberti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7ea924/32.png) [@Tomas\_Zulberti](https://www.ruby-forum.com/u/Tomas_Zulberti)\
**Post date:** [August 10, 2010, 6:29pm UTC](https://www.ruby-forum.com/t/sent-more-than-one-cookie/193071/1 "2010-08-10T18:29:37Z")

</div>

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?

Thanks in advance,  
TZ

---

<div class="post-metadata">

**Author:** ![Tomas\_Zulberti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7ea924/32.png) [@Tomas\_Zulberti](https://www.ruby-forum.com/u/Tomas_Zulberti)\
**Post date:** [August 11, 2010, 3:37am UTC](https://www.ruby-forum.com/t/sent-more-than-one-cookie/193071/2 "2010-08-11T03:37:36Z")

</div>

Hello!

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

> 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 D.
