在ASP中用程序控制弹出NTLM验证窗口

来源: 作者: 2007-11-20 出处:pcdog.com

在ASP中用程序控制弹出NTLM验证窗口
简介: 可以弹出NT验证窗口,而不管目录是否允许匿名访问,很好用的一段代码。
作者:亚豪 EMAIL: yahao@bigfoot.com 下载或访问
<%
Response.Status = "401 Unauthorized"
Response.AddHeader "WWW-Authenticate","NTLM"
response.write "user=" & Request.ServerVariables("LOGON_USER") & "<br>"
response.write "User login!"
response.end
%>  

上一篇:在asp中通过vbs类实现rsa加密与解密,建议入精华
下一篇:在ASP中用组件检测当前网卡地址