Monday, October 10, 2011

Custom User in ASP.NET


GenericIdentity identity = new GenericIdentity("engin"); 
GenericPrincipal user = new GenericPrincipal(identity, new[] { "admin" }); 
context.User = user;

No comments:

Post a Comment