Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim userIdentity As CustomIdentity
- userIdentity = New CustomIdentity(username, True,"forms", sessionId)
- Dim principal As New CustomPrincipal(userIdentity, arrRoles)
- HttpContext.Current.User = principal
- System.Threading.Thread.CurrentPrincipal = principal
Add Comment
Please, Sign In to add comment