mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[fix] Use 'Expires' instead of 'Max-Age' for every cookie for consistency.
This commit is contained in:
parent
fb99ee2177
commit
a2af42144b
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ function set_auth_cookie(user, domain)
|
||||||
"|"..session_key)
|
"|"..session_key)
|
||||||
local cookie_str = "; Domain=."..domain..
|
local cookie_str = "; Domain=."..domain..
|
||||||
"; Path=/"..
|
"; Path=/"..
|
||||||
"; Max-Age="..maxAge
|
"; Expires="..os.date("%a, %d %b %Y %X UTC;", expire)
|
||||||
|
|
||||||
ngx.header["Set-Cookie"] = {
|
ngx.header["Set-Cookie"] = {
|
||||||
"SSOwAuthUser="..user..cookie_str,
|
"SSOwAuthUser="..user..cookie_str,
|
||||||
|
|
Loading…
Reference in a new issue