Welcome! Log In Create A New Profile

Advanced

Overwriting a request cookie with a variable

Markus Jelsma
February 05, 2010 12:00PM
Hello list,


I have managed to retrieve data from memcache in a variable using the eval
module in Nginx but now i need that variable to be injected into the current
HTTP request.

Scenario:
An incoming HTTP request carries a cookie named token. I use that token to
look up a value in memcache. Afterwards, i need to replace the original token
cookie value with that new value i got from memcache before proxying the
request to a backend.

I have looked in the wiki and figured i need to write a variable, but writing
to my cookie doesn't seem to work. Also, i have not seen any leads in the
HttpCoreModule documentation on how to set/overwrite/manipulate a variable
from the HTTP request.


Regards,

Markus Jelsma - Technisch Architect - Buyways BV
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Overwriting a request cookie with a variable

Markus Jelsma February 05, 2010 12:00PM

Re: Overwriting a request cookie with a variable

Maxim Dounin February 05, 2010 01:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready