Cannot log a cookie with a dash in the name

Valentin V. Bartenev ne at vbart.ru
Mon Mar 12 23:11:09 UTC 2012


On Tuesday 13 March 2012 00:57:17 Valentin V. Bartenev wrote:
[...]
> 
> The map module may help:
> 
>   map $http_cookie $member_cookie {
> 	default  NONE;
>      ^Member-v1\.0=(?P<mc>[^;]+) $mc;
>   }
> 

Oops.. must be:

    map $http_cookie $member_cookie {
        default '';
        ~Member-v1\.0=(?P<mc>[^;]+) $mc;
    }

 wbr, Valentin V. Bartenev



More information about the nginx mailing list