This should really go to users@, but anyway... You might want to take a look at:
http://modlua.org/api/builtin#getcookie http://modlua.org/api/builtin#setcookie With regards, Daniel. On 2015-05-18 16:53, Christian Folini wrote:
Hello, Mod_lua gave me a few quick wins when I started to play around with cookies on a reverse proxy. But then the obvious happened: the backend started to issue multiple Set-Cookie response headers in the same http response. mod_lua returns the headers via r.headers_out, but while the documentation states the return value is of lua-type "table", it is actually of lua-type "userdata" and I can not seem my way around accessing more then a single Set-Cookie header per request. The latter is done via r.headers_out['Set-Cookie'], but now I got stuck. Any ideas? Best, Christian Folini