ClaimsIdentity ident = await UserManager.CreateIdentityAsync(user, DefaultAuthenticationTypes.ApplicationCookie);
AuthManager.SignOut();
AuthManager.SignIn(new AuthenticationProperties { IsPersistent = userInfo.rememberMe }, ident);
//I would like to get the value here
所以我试过使用HttpContext.Request.Cookies["cookieName"].Value
但它不起作用。实际上,当我做了HttpContext.Response.Cookies.Count
时,它返回0.如何在调用IauthenticationManager.SignIn后立即获取OWIN cookie的值?
使用AJAX身份验证时,我们需要确保登录已完成。如何找到? – Galaxydreams 2015-07-01 08:37:34