Add axTLS sourcecode
[project/luci.git] / libs / nixio / axTLS / www / lua / test_cookies.lua
1 local cookies = require"cgilua.cookies"
2 CL_COOKIE = "cgilua_cookie"
3
4 local test = cookies.get (CL_COOKIE)
5 cookies.set (CL_COOKIE, os.date())
6
7 cgilua.htmlheader ()
8 cgilua.put ([[
9 <h1>Testing Cookies library</h1>
10
11 ]]..CL_COOKIE..'  = '..tostring(test)..[[<br>
12 Assigning current date to cookie!<br>
13 Reload this script to check cookie's value!
14 ]])