服务器变量中的用户信息来自ASP.NET?

时间:2019-02-12 01:52:25

标签: asp.net-mvc iis

在“服务器变量”集合中,我注意到有:

REMOTE_USER
LOGON_USER
AUTH_USER

这些是否来自已删除的“ .ASPXFORMSAUTH” cookie?

编辑:

我认为是正确的:

        HttpCookie authCookie = Request.Cookies[FormsAuthentication.FormsCookieName];//.ASPXAUTH
        FormsAuthenticationTicket authTicket = FormsAuthentication.Decrypt(authCookie.Value);

参考:what is ASPXAUTH cookie?

1 个答案:

答案 0 :(得分:0)

我认为是正确的:

        HttpCookie authCookie = Request.Cookies[FormsAuthentication.FormsCookieName];//.ASPXAUTH
        FormsAuthenticationTicket authTicket = FormsAuthentication.Decrypt(authCookie.Value);

参考:what is ASPXAUTH cookie?