Request.ServerVariables["LOGON_USER"] 返回为空字符串问题

 

PRB:Request.ServerVariables

("LOGON_USER") 傳回空白字串

檢視此文章適用的產品。

文章編號 : 188717
上次校閱 : 2006年9月5日
版次 : 5.0
本文曾發行於 CHT188717

徵狀

從動態伺服器網頁 (ASP) 存取 Request.ServerVariables("LOGON_USER") 變數傳回空白字串。

為了擴展 LOGON_USER 變數,必須使用「基本」或「NT 挑戰/回應」安全性來驗證使用者。


CAUSE

The LOGON_USER variable is not populated if you use the Allow Anonymous security to access the ASP page.

In order for the LOGON_USER variable to be populated, the user must be authenticated using either Basic or NT Challenge/Response security.


 

原文地址:https://www.cnblogs.com/adam/p/927378.html