Why does httpRuntime targetFramework=“4.5” disable grabbing the .ASPXAUTH cookie?
问题 When my web.config has the below httpRuntime, my controller cannot grab the cookie .ASPXAUTH. It seems to be able to grab any other cookie, with or without the period prefix. If I delete the below line, it works fine. <httpRuntime targetFramework="4.5"/> I'm using the following to grab the cookie. HttpCookie authCookie = Request.Cookies[".ASPXAUTH"]; Why can't I grab the Forms Authentication cookie? 回答1: I had similar problem - my app with runtime 4.5 was unable to read an .ASPXAUTH cookie