相关疑难解决方法(0)

如何阅读MVC OWIN AuthenticationProperties?

在签署用户时我正在设置IsPersistent,如何读取该值?

var identity = await UserManager.CreateIdentityAsync(appUser, DefaultAuthenticationTypes.ApplicationCookie);
HttpContext.GetOwinContext().Authentication.SignIn(new AuthenticationProperties() { IsPersistent = false }, identity);
Run Code Online (Sandbox Code Playgroud)

.net c# asp.net-mvc owin

19
推荐指数
1
解决办法
5659
查看次数

标签 统计

.net ×1

asp.net-mvc ×1

c# ×1

owin ×1