在“服务器变量”集合中,我注意到有:
REMOTE_USER
LOGON_USER
AUTH_USER
这些是否来自已删除的“ .ASPXFORMSAUTH” cookie?
编辑:
我认为是正确的:
HttpCookie authCookie = Request.Cookies[FormsAuthentication.FormsCookieName];//.ASPXAUTH
FormsAuthenticationTicket authTicket = FormsAuthentication.Decrypt(authCookie.Value);
答案 0 :(得分:0)
我认为是正确的:
HttpCookie authCookie = Request.Cookies[FormsAuthentication.FormsCookieName];//.ASPXAUTH
FormsAuthenticationTicket authTicket = FormsAuthentication.Decrypt(authCookie.Value);