då hitta vad som e fel... jag har bytt ut cookies mot kakor men de e bara här i inlägget och har ingen betydelse eftersom man inte får skriva cookies i webforum!!!!!!
här e min connection sida:
<%
Option Explicit
Dim ConnectString,sql,conn,rsUser,username,password,page,stayloggedin,LConnectString,lconn
'Grab the submitted variables (page is the page they've come from, set by the hidden variable at the login box)
username = Request.Form("username")
password = Request.Form("password")
page = Request.Form("page")
stayloggedin = Request.Form("stayloggedin")
'Get a recordset corresponding to the submitted username and password
sql = "SELECT username FROM users WHERE username = '" & username & "' AND password = '" & password & "'"
Set rsUser = Server.CreateObject("ADODB.Recordset")
rsUser.Open sql, conn, 3, 3
'If there was a valid recordset there, then send them back to the page they came from, with the username kaka set
If (not rsUser.BOF) and (not rsUser.EOF) then
Response.kakor("username") = rsUser("username")
'If the user wants to stay logged in all the time, then we'll set the kaka with a far-away expiry date
if stayloggedin = "yes" then
Response.kakor("username").expires = #1/1/2010#
end if
rsUser.close
set rsUser = nothing
conn.close
set conn = nothing
Response.Redirect(page)
end if
'Otherwise, display an invalid entry screen
rsUser.close
set rsUser = nothing
conn.close
set conn = nothing%>
Har du OLEDB-drivrutiner för JET 4.0 installerat? Om inte kan du ladda ner senaste MDAC från MS för att fixa det. MDAC finns här: http://www.microsoft.com/data
slurken: japp, det ska vara ett mellanslag där.
------------------
/Morph
Tech Support: "I need you to boot the computer."
Customer: (THUMP! Pause.) "No, that didn't help."