Hello!
I need your help to remove certain cookies from the HTTP headers.
I have three cookies in the HTTP headers, but I would like to remove 2 of them; cookie1 and cookie2, meanwhile cookie3 should be passed on to the client.
map $http_cookie $pass_cookie {
default 0;
~cookie3 1;
}
..
server {
if ($http_cookie !~ (cookie1|cookie2)) {
fastcgi_hide_header $http_cookie {
}
} # Syntax error..
fastcgi_cache_bypass $pass_cookie;
fastcgi_no_cache $pass_cookie;
fastcgi_pass_header $pass_cookie;
Can you help me?
Best regards,
Alex.