Closed hchenxa closed 5 years ago
From the doc https://github.com/cloudflare/lua-resty-cookie/blob/master/README.md#set, when set cookie with expires time, it need to transfer the time to cookie.time() first which was not same like nginx-sticky-module-ng did. refer https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/overview.
The question was, Do I need to calculate the expires time before set cookie? and does there have any lua module can parse the time like ngx_parse.c did(https://www.cnblogs.com/xiangnan/p/5647115.html).
@agentzh
From the doc https://github.com/cloudflare/lua-resty-cookie/blob/master/README.md#set, when set cookie with expires time, it need to transfer the time to cookie.time() first which was not same like nginx-sticky-module-ng did. refer https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/overview.
The question was, Do I need to calculate the expires time before set cookie? and does there have any lua module can parse the time like ngx_parse.c did(https://www.cnblogs.com/xiangnan/p/5647115.html).
@agentzh