Hola.... tu codigo esta perfecto....
lo unico que hice fue sacarle en el form submit la accion pass.asp
pero igual no tendria que influir.... Ordene un poquitin el codigo y salio andando perfectamente.
Código:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
msg = ""
If Request("Submit") <> "" Then
If Request("username")="User" And Request("password")="Pass" Then
Session("Valid") = Request("username")
'primera página protegida
response.redirect "form.asp"
Else
msg = "Inténtalo de nuevo"
End If
End If
%>
<html>
<head>
<title>Password</title>
</head>
<body>
<form action="" method="post">
<table>
<% If msg <> "" Then %>
<tr><td colspan="2"><font color=red><%=msg%></font></td></tr>
<%End If%>
<tr>
<td>UserName:</td>
<td><input type="text" name="username"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="Password" name="password"></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="Submit"></td>
</tr>
</table>
</form>
</body>
</html>