![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
06/06/2004, 14:49
|
| | Fecha de Ingreso: enero-2004
Mensajes: 77
Antigüedad: 21 años, 1 mes Puntos: 0 | |
que te sirva en el webconfig---------
<authentication mode="Forms">
<forms name=".ask" loginUrl="acceso.aspx" />
</authentication>
en la Forma de acceso---------------------------------
Imports System.Web.Security
Private Sub Boton_login_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Page.IsValid Then
If (Me.TextBox1.Text = "jose") And (Me.TextBox2.Text = "password") Then
FormsAuthentication.RedirectFromLoginPage(Me.TextB ox1.Text, False)
Response.Redirect("bienvenida.aspx")
End If
End If
End Sub
en el boton de logout
FormsAuthentication.SignOut() |