Add new cookie into headers_in

michalkraus nginx-forum at nginx.us
Wed Jan 26 10:08:50 MSK 2011


Thanks a lot for your time.
Now, my module provides the data for cookie as a variable and
proxy_set_header just sets the cookie. Sending a response to client via
headers_out is OK.
I have managed to get the value of the cookie variable in my another
module. I used ngx_http_get_variable_index() for getting the index of
variable in configuration section and then at runtime
ngx_http_get_indexed_variable() for getting the value.

Michal

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,169118,169652#msg-169652




More information about the nginx mailing list