0

I'm trying to logout the user by removing a cookie and redirect him to the home page.

Is it possible to do it without adding lua-nginx-module?

4

1 に答える 1

0

1.1.15 以降、この問題に対処するために proxy_cookie_domain オプションが追加されました。

http://wiki.nginx.org/NginxHttpProxyModule#proxy_cookie_domain

http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cookie_domain

はい、lua-nginx-module でも可能です

于 2014-12-15T10:42:52.247 に答える