Annotation of embedaddon/axTLS/www/lua/test_cookies.lp, revision 1.1.1.1

1.1       misho       1: <?lua
                      2: local cookies = require"cgilua.cookies"
                      3: CL_COOKIE = "cgilua_cookie"
                      4: 
                      5: local test = cookies.get (CL_COOKIE)
                      6: cookies.sethtml (CL_COOKIE, os.date())
                      7: ?>
                      8: 
                      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!

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>