Hello,
I'm using the code to check if the user was subscribe into DB... so
he redirect if correct... if no.... go to other page...
My problem is... how routine I need put into the file...
conteudo.asp... to check if the session it's true if not.... redirect to file acessar.asp
Please help me...
'SELECT QUE BUSCA NO BANCO O NOME E A SENHA DO USUARIO
sqltemp="select * from acesso where usu = '" & nome & "'" & "and pass = '"&senha& "'"
set busca=session("banco".execute(sqltemp)
'check if found
if busca.eof then
set busca = Nothing
response.redirect "Ace_neg.htm"
else
session("nivel" = busca("nivel"
set busca = Nothing
response.redirect "conteudo.asp"
end if %>
Thanks
Luciano
I'm using the code to check if the user was subscribe into DB... so
he redirect if correct... if no.... go to other page...
My problem is... how routine I need put into the file...
conteudo.asp... to check if the session it's true if not.... redirect to file acessar.asp
Please help me...
'SELECT QUE BUSCA NO BANCO O NOME E A SENHA DO USUARIO
sqltemp="select * from acesso where usu = '" & nome & "'" & "and pass = '"&senha& "'"
set busca=session("banco".execute(sqltemp)
'check if found
if busca.eof then
set busca = Nothing
response.redirect "Ace_neg.htm"
else
session("nivel" = busca("nivel"
set busca = Nothing
response.redirect "conteudo.asp"
end if %>
Thanks
Luciano