Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Identity Core cookie causes http 403 error when login and logout multiple time

I have developed an ASP.NET MVC 5 application and it is hosted on shared hosting - IIS 10. For authentication, I am using identity to check authentication.

I'm logging in and out multiple times in my application. After 6 or 7 attempts, it directs me to the 403 error page.

After clearing the cache from the browser, it works fine again.

Please assist me to find a solution.

I updated the machine key as well. still getting the same issue.

The error initiates from the dynamic compression module when we check the tracing

like image 602
Irf92 Avatar asked Oct 23 '25 15:10

Irf92


1 Answers

I got an answer from the Hosting team. They have installed (ModSecurity)WAF to block requests from understanding the behavior of requests. After disabling this works fine now.

It will definitely help someone. Thanks.

like image 52
Irf92 Avatar answered Oct 27 '25 03:10

Irf92



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!