Ver Mensaje Individual
  #11 (permalink)  
Antiguo 04/08/2006, 11:10
Avatar de Gaby_Corr
Gaby_Corr
 
Fecha de Ingreso: junio-2005
Mensajes: 672
Antigüedad: 19 años, 11 meses
Puntos: 0
va! ya le modifique algo pero aun asi no me funciona, es mas hice esta simple prueba y siempre me pone "no jalo", nunca entra al login

Código:
<%
if session("entro")=1 then
   response.redirect ("login.asp")
else
  response.write("no jalo")
end if

%>
CODIGO DE MI VALIDACION
Código:
sQuery = "Select * From users where username = '" & sUser & "'"
	rs.Open sQuery,cn
	
	If rs.BOF and rs.EOF then 
		Application("ValidUser") = 1
		Response.Redirect("login.asp")
	Else
		if trim(sPwd) = trim(rs.fields("password").value) then 
			Application("ValidUser") = 0
			Session("User")=sUser
			Session("Pwd")=sPwd
		  if trim(sUser) =  trim(rs.fields("username").value)then				
			session("nautoriza")=1
			   Response.Redirect("info.asp")				
    	                  end if
		
		else
			session("nautoriza")=-1
			Application("ValidUser") = 1
			Response.Redirect("login.asp")
			
		end if 
	End If
	
	rs.Close
	Set rs = Nothing	
	cn.close
    set cn = Nothing
__________________
" Recuerda , estas donde debes estar ..."