Welcome! Log In Create A New Profile

Advanced

How to log all sent set-cookie headers

Posted by dhunnapotha 
How to log all sent set-cookie headers
May 21, 2014 01:52AM
Giving $sent_http_set_cookie in log_format logs only the first cookie that is set by Set-Cookie. Is there a way to log all the cookies that are sent using Set-Cookie.

This is the exact snippet in my nginx config
log_format main '$remote_addr [$time_local] '
'"$scheme $host $request" $status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" '
'($request_time)'
'(($sent_http_set_cookie))';
Re: How to log all sent set-cookie headers
October 14, 2019 09:36AM
This seems to be very specific issue, but suddenly I also met it.
Any ideas how to handle it?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 110
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready