Ответ 1
Хорошо, нашел это!
По умолчанию VS и Identity создадут в App_Start файл с именем Startup.Auth.cs
Этот файл содержит следующий код
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/Account/Login"),
Provider = new CookieAuthenticationProvider
{
OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager, ApplicationUser>(
validateInterval: TimeSpan.FromMinutes(30),
regenerateIdentity: (manager, user) => user.GenerateUserIdentityAsync(manager))
}
});
Чтобы решить нашу проблему, мы должны установить свойство CookieName CookieAuthenticationOptions
CookieName = "my-very-own-cookie-name"
Вот оно, больше ничего!
ура