Okay, I've found the answer to my question.
nginScript supports access to all of NGINX's variables. This also provides
access to the cookie like so:
myfunction(req, res) {
var cookie = req.variables.http_cookie;
}
Kind regards
Andreas
Posted at Nginx Forum:
https://forum.nginx.org/read.php?
at first glance i thought this may be dead, but perhaps you'd should look
here: https://www.nginx.com/blog/introduction-nginscript/, which supports
both Plus and OSS versions. I've been working with the lua module via
nginx-extras on ubuntu, they suit my needs, but that page may help you.
Jeff
O
Hey everyone
In this nginx news article the author states:
> With nginScript you can route traffic based on any data in the request,
> including cookies, headers, arguments, or any keywords in the request body.
So far I've been unable to find any documentation on how to read and write to
cookies