<%
If Session("Autentificado") & "" <> "" Then
'Aca codigo para iniciar la session
'Podemos colocar codigo para consultar a la base de datos si el usuario existe y tiene permisos
'o si solo queremos que le usuario solo ingrese sus datos
'En este ejemplo solo verificamos que el usuario haya ingresado su nombre en la caja del formulario
If Request.form("txtuser") & "" <> "" Then
Session("Autentificado") = "True"
End If
%>
<html>
<head>
<title>
Auteticacion
</title>
</head>
<body>
<form action="./default.asp" method="post" name="frmLogin">
<input type="text" name="txtuser">
<br />
<input type="password" name="txtPassword">
<br />
<input type="submit" value="Ingresar">
</form>
</body>
</html>
<%
Else
%>
<html>
<head>
<title>Usuario Autentificado</title>
</head>
<body>
<!-- Aca va el cuerpo de tu pagina -->
El usuario se autentifico correctamente
</body>
</html>
<%
End If
%>