Welcome! Log In Create A New Profile


handling cookie

Kuroishi Mitsuo
July 30, 2019 09:14PM

I'm developing a module that handles the cookie header for

It's kind of awkward though, the cookie sometimes contains the
same key name. For example,

Cookie: a=xxx; a=yyy

Currently I use ngx_http_parse_multi_header_lines() like below.

ngx_str_t buf;
ngx_str_t key = ngx_string ("a");
ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &key, &buf);

But the function only seems to be able to get the 1st one.

Is there any way to get the 2nd value? And any idea is welcome.

Thanks in advance.

Kuroishi Mitsuo
nginx mailing list
Subject Author Posted

handling cookie

Kuroishi Mitsuo July 30, 2019 09:14PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 63
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