asp_web_howto thread: setting up cookie .
can anybody tel me???????
i have a login/password page ..
when i insert my user login/password , the script which is give bellow
executes...
i think it sets the cookie....
but can u tel me what ("AUTHXOCX.AuthXOCXCtrl.1") is??????
what is setVirtualDomain ?????
<%
usingAuthentiXStandard = true
Set auth = Server.CreateObject("AUTHXOCX.AuthXOCXCtrl.1")
protectedDomain = Request.ServerVariables("LOCAL_ADDR")
auth.SetVirtualDomain protectedDomain, Request.ServerVariables
("SCRIPT_NAME")
auth.SetVirtualDomainPassword("")
siteDirectory = "/"
cookieName = "AXCOOKIELOGIN"
%>
<!-- #include file="../Includes/SWLogin_URL.inc" -->
<%
Session("aid") = ""
Session("userName") = Request.Form("USERNAME")
if (0 = auth.GroupHasUser("Hawai", Request.Form("USERNAME"))) then
cookieValue = auth.CookieSWValue(Request.Form("USERNAME"), Request.Form
("PASSWORD"))
response.Cookies(cookieName) = cookieValue
response.Cookies(cookieName).Path = siteDirectory
response.redirect sURL & "Hawai/"
%>