Ho capito il concetto.
Grazie al tuo suggerimento ho trovato in rete questo esempio:
PAGINA X EFFETTUARE IL LOGIN:
codice:
<%
Response.Expires = -1000 'Make sure the browser doesnt cache this page
Response.Buffer = True 'enables our response.redirect to work
If Request.Form("valuepassed") ="true" Then
CheckLoginForm
Else
ShowLoginForm
End If
Sub CheckLoginForm
'check if the value of the text field 'username' and 'password' are correct
If Request.Form("username") = "mic" AND Request.Form("password") = "pass" Then
Session("BlnLoggedIn") = True
Response.Redirect "memberspage.asp"
Else
Response.Write("<div align='center'>You are not logged in.</div>
")
ShowLoginForm
End If
End Sub
%>
<% Sub ShowLoginForm %>
<div align='center'>
<form name="form" action="login.asp" method="post">
User Name : <input type="text" name="username">
Password : <input type="text" name="password">
<input type="hidden" name="valuepassed" value="true">
<input type=submit value="Login">
</form>
</div>
<% End Sub %>
CODICE DI CONTROLLO (da inserire nelle pagine):
codice:
<%
If Session("BlnLoggedIn") <> True Then
Response.Redirect("login.asp")
End If
%>
Grazie ZofM!!