services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
.AddOwinCookie(CookieAuthenticationDefaults.AuthenticationScheme, 3, options =>
{
options.Cookie.Name = "random";
options.ExpireTimeSpan = TimeSpan.FromMinutes(1);
options.LoginPath = "/Account/Login";
});
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
.AddOwinCookie(CookieAuthenticationDefaults.AuthenticationScheme, 3, options =>
{
options.Cookie.Name = "random";
options.ExpireTimeSpan = TimeSpan.FromMinutes(1);
options.LoginPath = "/Account/Login";
});