Friends, this code is written in global.asax file, kindly tell me what this code is doing?
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
if (HttpContext.Current.User != null)
{
FormsIdentity id = (FormsIdentity)(User.Identity);
String s = id.Ticket.UserData;
String[] r = s.Split(',');
HttpContext.Current.User = new GenericPrincipal(id, r);
}
}
...
Go to the complete details ...