mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@128 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
14 lines
314 B
Plaintext
14 lines
314 B
Plaintext
<?lua
|
|
local cookies = require"cgilua.cookies"
|
|
CL_COOKIE = "cgilua_cookie"
|
|
|
|
local test = cookies.get (CL_COOKIE)
|
|
cookies.sethtml (CL_COOKIE, os.date())
|
|
?>
|
|
|
|
<h1>Testing Cookies library</h1>
|
|
|
|
<%= CL_COOKIE%> = <%= tostring(test)%><br>
|
|
Assigning current date to cookie!<br>
|
|
Reload this script to check cookie's value!
|