testcookie-nginx-module icon indicating copy to clipboard operation
testcookie-nginx-module copied to clipboard

is it possible to check cookie exist?

Open thecankaya opened this issue 6 years ago • 2 comments

Hi,

I would like to check if cookie exist, dont set again. Is it possible to do it?

thecankaya avatar Feb 19 '18 20:02 thecankaya

No need to do that, just leave default expiry date. It will expire in years...

On 19 Feb 2018, at 20:31, Mustafa Can Kaya [email protected] wrote:

Hi,

I would like to check if cookie exist, dont set again. Is it possible to do it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Mecanik avatar Feb 19 '18 22:02 Mecanik

Yes, I fixed it here (ironfox is a fork of testcookie-nginx-module) https://github.com/khaleghsalehi/ironfox/blob/master/modules/ngx_http_bot_protection_module/src/ngx_http_bot_protection_module.c#L1632

khaleghsalehi avatar Oct 15 '22 20:10 khaleghsalehi