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