From a2af42144bd84a83ed23309be1094aab6f846b25 Mon Sep 17 00:00:00 2001 From: opi Date: Tue, 28 Feb 2017 15:23:40 +0100 Subject: [PATCH] [fix] Use 'Expires' instead of 'Max-Age' for every cookie for consistency. --- helpers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.lua b/helpers.lua index e3b08c7..3e09a88 100644 --- a/helpers.lua +++ b/helpers.lua @@ -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,