I'm using identity in an ASP.NET CORE project, however I'm having trouble uploading the project into production.
When doing a POST it sends my information normally, but when changing pages and sending another POST, the system logs out. Done again POST works, however if you change pages and try to do a second POST it comes out again.
ASP NET CORE comes with "forms" with pre-set AntiForgeryToken, so all POST methods are already decorated with the [ValidateAntiForgeryToken] attribute.
I have tried several ways to increase the expiration date of identity cookies or antiforgery, I have succeeded in changing, but have not yet stopped logging.
NOTE: In a development environment, no logout occurs at any time.