services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
.AddCookie(options =>
{
options.Cookie.Name = "TestCookie1";
options.LoginPath = new PathString("/Account/Login");
options.AccessDeniedPath = new PathString("/Account/Denied");
})
.AddCookie(options =>
{
options.Cookie.Name = "TestCookie2";
options.LoginPath = new PathString("/Account/Login");
options.AccessDeniedPath = new PathString("/Account/Denied");
});.Net Core Cookie 认证,怎么写入两个 Cookie?上面这样写是不能运行的
1 回答
- 1 回答
- 0 关注
- 718 浏览
添加回答
举报
0/150
提交
取消