Eventualmente se usassi il database come faccio a tutelarmi dal SQL injection? (perchè in altri siti uso il db).
Comunque il codice che utilizzo è questo:
codice:
password=request.form("password")
user=request.form("user")
if not user="utente" then
response.redirect "index.html"
else
if not password="password" then
response.redirect "index.html"
else
sessione=11111
end if
end if
Poi su ogni pagina controllo in questo modo:
codice:
sessione=request.querystring("sessione")
if not sessione=11111 then
response.redirect "index.html"
end if