中铁文工团:请教高手----急

来源:百度文库 编辑:高校问答 时间:2024/04/27 22:32:58
请高手看看下面的代码什么意思

<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="look.asp"
MM_grantAccess=false
If Session("MM_Username") <> "" Then
If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>

MM_UserAuthorization为会话层的权限变量。通过判断成立后,由Response.Redirect(MM_authFailedURL) 转向到它自定义的look.asp页面。

我想应该是网络连接服务器的代码吧!

这是一段asp代码,是用来进行密码验证的,如果正确就重定向到正确的页面,否则就定向到失败的页面

这是一段asp代码,是用来进行密码验证的,如果正确就重定向到正确的页面,否则就定向到失败的页面