Is there a way to rewrite a cookie name in nginx?

3.5k views Asked by At

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?

1

There are 1 answers

1
Ayush Ghosh On

Starting in 1.1.15, proxy_cookie_domain option was added to address this issue.

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

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

Yes it is possible with lua-nginx-module also