B
B
brar2020-06-05 16:24:20
Nginx
brar, 2020-06-05 16:24:20

How to force clear user's browser cookies?

What nginx setting (nginx + php-fpm + mariadb bundle) will make it ignore old user browser cookies?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2020-06-05
@Nc_Soft

You can remove them on the nginx side when proxying

proxy_hide_header       Set-Cookie;
proxy_ignore_headers    Set-Cookie;
# important! Remember the special inheritance rules for proxy_set_header:
# http://nginx.org/ru/docs/http/ngx_http_proxy_module.html#proxy_set_header
proxy_set_header        Cookie "";

A
Alexey Sundukov, 2020-06-05
@alekciy

Send the same cookie with an expiration date in the past.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question