Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/11/2005, 16:30
9.jorge
 
Fecha de Ingreso: noviembre-2005
Mensajes: 129
Antigüedad: 18 años, 6 meses
Puntos: 0
te falta el pa´rámetro del rol o roles q tiene el usuario q esta siendo autenticado, ve el sgte ejemplo:

// The user has been authenticated.
// 1. Create the ticket.
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(
1, // version
Request.Form["emailaddr"], // get the username (e-mail address) from the form
DateTime.Now, // issue time is now
DateTime.Now.AddMinutes(30), // expires in 30 minutes
false, // cookie is not persistent
"member"); // role assignment is stored in the UserData