Merge pull request #3363 from skeeey/master
Document for cookie expires annotation
This commit is contained in:
commit
1db9c91af4
4 changed files with 10 additions and 4 deletions
|
|
@ -57,7 +57,7 @@ local function set_cookie(self, value)
|
|||
}
|
||||
|
||||
if self.cookie_expires and self.cookie_expires ~= "" then
|
||||
cookie_data.expires = ngx.cookie_time(tonumber(self.cookie_expires))
|
||||
cookie_data.expires = ngx.cookie_time(ngx.time() + tonumber(self.cookie_expires))
|
||||
end
|
||||
|
||||
if self.cookie_max_age and self.cookie_max_age ~= "" then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue