Answer the question
In order to leave comments, you need to log in
Asp.net why is auth session reset after application restart?
Hello. I am currently learning the asp.net core framework and its authentication system. Created a simple application with authentication and cookies - everything works.
But if you restart the application, then the user authentication is reset. Why is this happening (after all, all the data is already stored in my cookies)? Is there any user data stored in memory? Or are some data for decrypting cookies changing? And there are some materials on this subject, where the authentication mechanism is described in detail?
Answer the question
In order to leave comments, you need to log in
Found the reason - all because of inattention. TicketStore was configured to be in-memory, only the ID was stored in the cookie, and all data was in-memory on the server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question