do not hardcode the path

This commit is contained in:
Hui Chen 2018-09-17 10:52:21 +08:00
parent 3cac3b6f19
commit 3dc21ead49
2 changed files with 9 additions and 9 deletions

View file

@ -41,7 +41,7 @@ local function set_cookie(self, value)
ok, err = cookie:set({
key = self.cookie_name,
value = value,
path = "/",
path = ngx.var.location_path,
domain = ngx.var.host,
httponly = true,
})