2010-10-16 109 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

回答