Ecco il codice:
Secondo te potrebbe dipendere dal db?codice:<% Dim nome_ut Dim pass nome_ut = Replace(Request.Form("nome_utente"), "'", "''") pass = Replace(Request.Form("password"), "'", "''") dim cn set cn= server.CreateObject("adodb.connection") on error resume next cn.Provider= "Microsoft Jet 4.0 OLE DB Provider" cn.Open "\\ACCESS1\Db$\t3lab\wwForum.mdb" Dim sql sql = "SELECT ID FROM Utenti WHERE NOMEUTENTE='" &nome_ut&_ "' AND PASSWORD='" &pass& "'" Dim rs Set rs = cn.Execute(sql) Dim autenticato if rs.eof then autenticato = false else autenticato = true end if rs.Close cn.Close Set rs = Nothing Set cn = Nothing if autenticato = true then Session("Autenticato") = "OK" Response.Redirect("arhomePD.asp") else Response.Redirect("nonregistratoPD.asp") end if %>

Rispondi quotando