【发布时间】:2018-02-24 21:21:03
【问题描述】:
我正在尝试建立持久连接,因此用户只需使用一次密码。我使用过这个文档:https://docs.microsoft.com/en-us/aspnet/core/security/authentication/cookie?tabs=aspnetcore2x,但用户在一段时间后仍然会断开连接。
await HttpContext.SignInAsync(
CookieAuthenticationDefaults.AuthenticationScheme,
principal,
new AuthenticationProperties
{
IsPersistent = true
});
如何才能获得真正持久的连接?
【问题讨论】:
标签: asp.net-core asp.net-core-2.0