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 認(rèn)證,怎么寫入兩個(gè) Cookie?上面這樣寫是不能運(yùn)行的
- 1 回答
- 0 關(guān)注
- 745 瀏覽
添加回答
舉報(bào)
0/150
提交
取消