ASP.Net Core Cookie Authentication is not persistant
问题 I started developing websites using ASP.Net Core 2.2 . I'm implementing login/logout by a custom cookie authentication (not Identity). Please see or clone the repo: git clone https://github.com/mrmowji/aspcore-custom-cookie-authentication.git . ... or read the following code snippets. Here is the code in Startup.cs : public void ConfigureServices(IServiceCollection services) { ... services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme) .AddCookie(options => { options