2010-10-16 112 views
0

我想在用户登录时检查用户。我把下面的代码在CMS应用的包括但并不在IIS 7.5的工作:检查用户登录

Function check_login(str_siteadmin,str_adminnaam) 
    url = "http://www.mydomain.be/test.asp?IP=" & _ 
      Request.ServerVariables("LOCAL_ADDR") & _ 
      "&site=" & Request.ServerVariables("SERVER_NAME") & _ 
      "&siteadmin=" & str_siteadmin & _ 
      "&adminnaam=" & str_adminnaam &"" 
    set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") 
    xmlhttp.open "GET", url, false 
    xmlhttp.send "" 
    session("whoareyou")= xmlhttp.responseText 
    set xmlhttp = nothing 
end function 
+0

什么_exactly_“不工作”?应该发生什么? – Oded 2010-10-16 13:27:29

+0

那么,当客户端用户登录那里我想在我的系统页面看到这个网站test.asp – reggie 2010-10-16 13:57:28

+0

你仍然没有给我们太多的去继续。你有什么错误吗?请扩展更多细节。 – Kev 2010-10-16 16:10:49

回答