ClaimsIdentity ident = await UserManager.CreateIdentityAsync(user, DefaultAuthenticationTypes.ApplicationCookie);
AuthManager.SignOut();
AuthManager.SignIn(new AuthenticationProperties { IsPersistent = userInfo.rememberMe }, ident);
So, I tried to use HttpContext.Request.Cookies["cookieName"].Value, but it does not work. In fact, when I did HttpContext.Response.Cookies.Count, it returned 0.
source
share