You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
344 B
14 lines
344 B
local cookies = require"cgilua.cookies"
|
|
CL_COOKIE = "cgilua_cookie"
|
|
|
|
local test = cookies.get (CL_COOKIE)
|
|
cookies.set (CL_COOKIE, os.date())
|
|
|
|
cgilua.htmlheader ()
|
|
cgilua.put ([[
|
|
<h1>Testing Cookies library</h1>
|
|
|
|
]]..CL_COOKIE..' = '..tostring(test)..[[<br>
|
|
Assigning current date to cookie!<br>
|
|
Reload this script to check cookie's value!
|
|
]])
|
|
|