Author: mikecollins | Posted on: 9/9/2008 9:05:54 AM | Views : 291

I have set up forms authentication. In my Global.asax file, I have the following code.protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
HttpCookie authenCookie = Context.Request.Cookies.Get(FormsAuthentication.FormsCookieName);

if (authenCookie == null)
return;

FormsAuthenticationTicket ticket = FormsAuthentication.Decrypt(authenCookie.Value);
FormsIdentity id = new FormsIdentity(ticket);
string[] astrRoles = ticket.UserData.Split(new char[] { '=' });
_UserId = int.Parse(astrRoles[1].ToString());
}In my login page, after the user clicks login and chooses to remember their password, I have the following:< ...

Go to the complete details ...