Posted on: 7/9/2012 12:24:07 AM | Views : 264

I have simple website. I developed Login, Register and MyAccount.aspx pages. I want MyAccount enable extra features for particular user roles. But I am not sure what I did wrong and why it doesn't work.

Login.aspx
// Initialize FormsAuthentication FormsAuthentication.Initialize(); // Create a new ticket used for authentication FormsAuthenticationTicket ticket = new FormsAuthenticationTicket( 1, // Ticket version txtUserName.Value, // Username associated with ticket DateTime.Now, // Date/time issued DateTime.Now.AddMinutes(30), // Date/time to expire true, // "true" for a persistent user cookie "member, manager", // User-data, in this case the roles FormsAuthentication.FormsCookiePath);// Path cookie valid for // Encrypt the cook ...

Go to the complete details ...