python - client connection id passed from nginx to uwsgi -



python - client connection id passed from nginx to uwsgi -

i using next setup:

client -> nginx -> uwsgi -> python app

the connection between client , nginx persistent. aware there no back upwards persistent connection between nginx , uwsgi.

is there way pass nginx connection id uwsgi can differentiate between clients? trying differentiate between clients next limitation: client not back upwards cookies , cannot modify client code. client posts json same url modifying urls not apply here.

two solutions come mind:

link client ip address and/or other headers client sending;

upon first connection create session id , alter links on page /link/to/page?sid=%(sessionid)s. it's not pretty works.

python http nginx wsgi uwsgi

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -