bueno lo que se me ocurrio fue esto y si me funciono, si hay otra forma de hacerlo pues estoy abierta a cualquier comentario
Código:
if not rs.eof then
if rs("username")=sUser and rs("password")=sPwd then
Session("autorizacion")=1
if Session("valor")= "proy" then
Response.Redirect ("regproyecto.asp")
else
if Session("valor")= "prop" then
Response.Redirect("regpropiedad.asp")
end if
end if
end if
else
session("autorizacion")=-1
end if
y en regproyecto.asp al inicio le puse esto:
Código:
<% if session("autorizacion")<>1 then
Session("valor")= "proy"
response.redirect "login.asp"
end if%>
Saludos