I'm trying to share the same login cookie to two differents MVC5 projects.
I've already set the same cookie name to both projects, but thats doesnt work.
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/Account/Login"),
CookieName = "OrienteIntegrada",
Provider = new CookieAuthenticationProvider
{
// Permite que o aplicativo valide o carimbo de segurança quando o usuário efetuar login.
// Este é um recurso de segurança que é usado quando você altera uma senha ou adiciona um login externo à sua conta.
OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager, ApplicationUser>(
validateInterval: TimeSpan.FromMinutes(30),
regenerateIdentity: (manager, user) => user.GenerateUserIdentityAsync(manager))
}
});
Both apps are in the same site... and I can get them by accessing localhost/teste and localhost/teste2;
Am I supposed to set anything in IIS? I'm sorry about my english... I hope you may understand me. Thx