Welcome! Log In Create A New Profile

Advanced

Re: Sent more than one cookie

Maxim Dounin
August 10, 2010 09:40PM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Sent more than one cookie

Tomas Zulberti August 10, 2010 12:38PM

Re: Sent more than one cookie

Maxim Dounin August 10, 2010 09:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 286
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready