I'm writing a Lua script for lighttpd (which run with mod_magnet). I want to set multiple cookie in my script but I don't know how should I do this.
I can set one cookie with this:
lighty.header['Set-Cookie'] = 'Foo=bar'
I've tried this for setting multiple cookie:
lighty.header['Set-Cookie'] = {'Foo=bar', 'bar=Foo'}
but it did not work
I also tried this but there is no success:
lighty.header['set-Cookie'] = {}
lighty.header['set-Cookie']['Foo'] = "bar"
lighty.header['set-Cookie']['bar'] = "Foo"