lua:
local access_token = ngx.var.cookie_SGAccessToken
if access_token then
ngx.header["Set-Cookie"] = "SGAccessToken="..access_token.."; path=/;Max-Age=3000"
end
nginx
add_header Set-Cookie "gid=$http_gid";
$cookie_gid
lua set get cookie
阅读 44
2023-04-11
lua:
local access_token = ngx.var.cookie_SGAccessToken
if access_token then
ngx.header["Set-Cookie"] = "SGAccessToken="..access_token.."; path=/;Max-Age=3000"
end
nginx
add_header Set-Cookie "gid=$http_gid";
$cookie_gid
相关推荐
精彩评论(0)