Author: SHERGILL1 | Posted on: 8/29/2010 6:16:20 AM | Views : 287

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 ...