您的位置:首页 > 编程语言 > ASP

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

2014-05-09 22:05 295 查看
在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 

%>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: