SetAuthCookie Setting Cookie, but not IsAuthenticated on Subsequent Requests
问题 I have some code where we create an authentication ticket. After creating the ticket, we call SetAuthCookie to set the cookie such as: FormsAuthentication.SetAuthCookie(username, true); Response.Redirect("/", true); If I check on the root page to see if the user is authenticated, it returns false. However, if I hard code the username in and do: FormsAuthentication.GetAuthCookie("jason", true).value); I get the appropriate cookie value. So, the cookie exists. But the name and the flag are not