[fix] Use 'Expires' instead of 'Max-Age' for every cookie for consistency.

This commit is contained in:
opi 2017-02-28 15:23:40 +01:00
parent fb99ee2177
commit a2af42144b

View file

@ -117,7 +117,7 @@ function set_auth_cookie(user, domain)
"|"..session_key)
local cookie_str = "; Domain=."..domain..
"; Path=/"..
"; Max-Age="..maxAge
"; Expires="..os.date("%a, %d %b %Y %X UTC;", expire)
ngx.header["Set-Cookie"] = {
"SSOwAuthUser="..user..cookie_str,