Bueno, pues lo que decía antes, ¡vaya lio!
Verás lo que he hecho:
Código:
FormsAuthentication.Initialize()
Dim strRole As String = "Socios"
Dim fat As New FormsAuthenticationTicket(1, _
usuario, DateTime.Now, _
DateTime.Now.AddMinutes(20), _
False, strRole, _
FormsAuthentication.FormsCookiePath)
Response.Cookies.Add(New HttpCookie(FormsAuthentication.FormsCookieName, _
FormsAuthentication.Encrypt(fat)))
Response.Redirect(FormsAuthentication.GetRedirectUrl(usuario, False))
usuario es el nombre que se pone en un cuadro de texto y es el que se usa para buscar en la base de datos.
El web.config igual que antes, es decir, permitir sólo al rol "Socios".
Pero me vuelve a redirigir a la página de registro