chaoslawful/lua-nginx-module — Issue #75: header set with ngx.req persists between requests 
Author: eoranged
Created: 2011-12-26 20:55:01+00:00
State: open

The problem appears in case like this

1. Client sents request to nginx;
2. Lua script handles the request;
3. The scripts asks `backend 1` for ID, if user haven't it and sets it with `ngx.req.set_header("Cookie", "blah=blah-blah path=/ expires=somedate")`;
4. Request is passed to `backend 2` with proxy_pass directive;
5. `backend 2` sents request to nginx during processing the request and the cookie, which has been set on step 3 for another request appears in this one.

I will provide minimalist config example to reproduce this situation when I'll have time to write it and figure out the problem.
It happens with rc38 or something like this. I'll provide additional info with the config.
Actually it's just a remainder for me not to forget to submit the issue.