diff options
author | Daniel Gruno <humbedooh@apache.org> | 2014-02-11 23:45:32 +0100 |
---|---|---|
committer | Daniel Gruno <humbedooh@apache.org> | 2014-02-11 23:45:32 +0100 |
commit | 5ed3e104738f54ace4f2c4921726c349d46777d9 (patch) | |
tree | abeabbaf9d21668a956e6fe625b6043f9afe929b /docs/manual/mod/mod_lua.xml | |
parent | mod_lua: Fix r:setcookie() to add, rather than replace, (diff) | |
download | apache2-5ed3e104738f54ace4f2c4921726c349d46777d9.tar.xz apache2-5ed3e104738f54ace4f2c4921726c349d46777d9.zip |
mod_lua: Upgrade r:setcookie to accept a table of arguments, and add domain, path and HttpOnly to the list of options available for setting. PR 56128
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1567430 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_lua.xml')
-rw-r--r-- | docs/manual/mod/mod_lua.xml | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/docs/manual/mod/mod_lua.xml b/docs/manual/mod/mod_lua.xml index 1b5d1ba30d..4d26b8c5db 100644 --- a/docs/manual/mod/mod_lua.xml +++ b/docs/manual/mod/mod_lua.xml @@ -972,8 +972,22 @@ r:getcookie(key) -- Gets a HTTP cookie </highlight> <highlight language="lua"> -r:setcookie(key, value, secure, expires) -- Sets a HTTP cookie, for instance: -r:setcookie("foo", "bar and stuff", false, os.time() + 86400) +r:setcookie{ + key = [key], + value = [value], + expires = [expiry], + secure = [boolean], + httponly = [boolean], + path = [path], + domain = [domain] +} -- Sets a HTTP cookie, for instance: + +r:setcookie{ + key = "cookie1", + value = "HDHfa9eyffh396rt", + expires = os.time() + 86400, + secure = true +} </highlight> <highlight language="lua"> |