More Cookie Trouble IIS 4/5/6

My searches have turned up similar problems, but I have yet to find the
solution. We've got a site running on IIS4 (NT4) that we want to move
to Win2k and IIS5. The logon.asp page sets a cookie, but that's not
working on IIS5. Curiously, the exact same code works just fine on
IIS4 and IIS6 (Win2k3), but not on our 2k server.

Here's the relevant code:

<% [at] Language=VBScript %>

<%

Response.Buffer = True

txtLogin = Trim(Request.Form("txtlogin"))
txtPassword = Trim(Request.Form("txtpassword"))

Set ActiveConn = Server.CreateObject("ADODB.CONNECTION")
ActiveConn.Open Application("connstr")
strQuery = "Select * from Users where LOGIN_ID = '" + txtLogin + "' and
" + " PASSWORD = '" + txtPassword + "'"

Set rsLogin = Server.CreateObject("ADODB.RecordSet")
rsLogin.Open strQuery,ActiveConn,adOpenStatic

txtUserType = rsLogin("USER_TYPE")
txtValue = rsLogin("VALUE")



If NOT rsLogin.EOF then

'Response.Cookies("PAUL")("USERTYPE") = txtUserType
'Response.Cookies("PAUL")("VALUE") = txtValue


'Response.Write(Session("UserType"))

'Response.Redirect "Frame.asp?ut="+txtUserType+"&v="+txtValue
Response.Redirect "Frame.asp"
Else
'Response.Redirect "LoginError.htm"
End If

%>


Thanks for any help you care to offer.
brad.cleghorn [ Fr, 21 Oktober 2005 22:12 ] [ ID #1024106 ]
Webserver » microsoft.public.inetserver.iis » More Cookie Trouble IIS 4/5/6

Vorheriges Thema: SharePoint upload performance problems
Nächstes Thema: creating tertiary domains on the fly