I have an existing production ASP.NET Core 1.1 project that I have upgraded to ASP.NET Core 2.
I set the ASP.NET Core identity authentication cookie like this in ASP.NET Core 1.1 to 2 hours
public void ConfigureServices(IServiceCollection services)
{
services.AddIdentity<ApplicationUser, ApplicationRole>(options =>
{
options.Cookies.ApplicationCookie.CookieName = "MyApp";
options.Cookies.ApplicationCookie.ExpireTimeSpan = TimeSpan.FromMinutes(120);
})
.AddEntityFrameworkStores<MyDbContext, Guid>()
.AddDefaultTokenProviders();
However in ASP.NET 2.0 Core the Cookies property has been removed from the AddIdentity option