nginx keeps passing the same http_cookie to uwsgi

Maxim Dounin mdounin at
Tue Jun 19 13:41:07 UTC 2012


On Mon, Jun 18, 2012 at 04:26:45PM -0700, jeff thomas wrote:

> I have a small python app running via uwsgi with requests served 
> by nginx. 
> I'm printing the environment variables... and it looks like 
> after a couple of ok requests, nginx is sending the same 
> HTTP_COOKIE param for unrelated requests:


> These are 2 distinct clients. I opened an incognito session, 
> confirmed that no cookie was sent in the headers, and the uwsgi 
> log shows that it received the same HTTP_COOKIE.
> How can I make sure that nginx only passes the proper 
> information for the current request, without regard to other 
> requests?

Try tcpdump to see what actually happens on the wire between nginx 
and your uwsgi backend.  Unless you see unrelated cookie there - 
the problem isn't in nginx.

Maxim Dounin

More information about the nginx mailing list