nginScript and accessing cookies

Unsay nginx-forum at forum.nginx.org
Thu Apr 13 19:54:53 UTC 2017


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?2,273509,273626#msg-273626



More information about the nginx mailing list