|    
			
				09/01/2008, 00:34
			
			
			  | 
  |   |  |  |  |  Fecha de Ingreso: noviembre-2007 Ubicación: C:\inetpub\wwwroot\Guayaquil 
						Mensajes: 1.507
					 Antigüedad: 17 años, 10 meses Puntos: 54 |  | 
  |  Re: Usuario y contraseña  
  Lo que pasa es que no has usado una variable para mostrar el código. Además de que no has instanciado el objeto session.
 Tienes que usar un IF... Then.. Else... Global.
 
 Así:
 
 <%
 
 If Session("autorizado") then
 
 <html>
 <head>
 <title></title>
 </head>
 <body>
 Bienvenido <!-- zona privada, redireccion, etc-->
 </body>
 </html>
 
 else
 
 <html>
 <head>
 <title>Identificacion</title>
 </head>
 
 <body>
 
 <form action="check.asp" method="POST" name="form1">
 <h3> Usuario: <input type="text" size="25" name="strLogin" id="strLogin"> </h3>
 <h3> Contraseña: <input type="password" size="20" name="strPassword" id="strPassword"> </h3>
 <td align="center"><input type="submit" value="Enviar"></td>
 </form>
 </body>
 </html>
 
 End If
 %>
 
 Y ya está.
 
 Es muy simple usando los If.. Then.. Else..
 
 Así cuando entres por primera vez a la página, ésta te mostrará el formulario de registro, una vez que te hayas autentificado, te mostrará lo que está abajo del else.
     |