I want to check a user when they login. I placed following code in an include in the CMS application but it doesn't work on 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