Cookie for lua
installation
$ sudo luarocks install gonapps-cookie
example code
local cookieModule = require "gonapps.cookie"
local cookie = cookieModule.new("aaa=bbb; ccc=ddd; HttpOnly")
if cookie.flags["HttpOnly"] then
print("HTTP Only Flag")
end
print("ccc", cookie.data["ccc"])
print(cookie:toString())
Mozilla Public License 2.0