With ASP.NET Core 1.1 + Identity, I use this:
public void ConfigureServices(IServiceCollection services) { (...) services.AddIdentity<ApplicationUser, IdentityRole>(x => { x.Cookies.ApplicationCookie.LoginPath = new PathString("/Admin/Login"); x.Cookies.ApplicationCookie.LogoutPath = new PathString("/Admin/LogOff"); } }
orrel source share