]> git.kaiwu.me - nginx.git/commit
Sticky: added the "max-age" attribute to cookie.
authorVladimir Homutov <vl@nginx.com>
Fri, 7 Apr 2017 13:28:15 +0000 (16:28 +0300)
committerAleksei Bavshin <a.bavshin@f5.com>
Mon, 9 Mar 2026 17:08:30 +0000 (11:08 -0600)
commit7acbe17776a4133a08c7b5f502dc4a8fc40b2aef
tree1eae0601b2f9e44961e9b84e70fa0c91d132ed08
parentc988a6e2c13fc37cfc09d11a492540cd4e44163a
Sticky: added the "max-age" attribute to cookie.

RFC 6265 defines "Max-Age" cookie attribute in section 5.2.2.

If the "expires" option is passed to the "sticky" directive, "max-age"
attribute will appear in cookies set by the module with corresponding
value in seconds.

For the special "max" value of the "expires" option, corresponding "max-age"
attribute value will be set to 315360000 seconds (10 years, similar to
how its done in headers_filter module for the "Cache-Control" header).
src/http/modules/ngx_http_upstream_sticky_module.c