add_header Set-Cookie The difference between Max-Age and Expires
c0nw0nk
nginx-forum at forum.nginx.org
Fri Sep 9 09:38:21 UTC 2016
Solved it now i forgot in lua i declare vars from nginx different.
header_filter_by_lua '
ngx.header["Set-Cookie"] = "value=1; path=/; domain=" ..
ngx.var.host_without_www .. "; Expires=" ..
ngx.cookie_time(ngx.time()+2592000) -- +1 month 30 days
';
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,269438,269443#msg-269443
More information about the nginx
mailing list