Guest User

Untitled

a guest
Jun 20th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. Dim userIdentity As CustomIdentity
  2. userIdentity = New CustomIdentity(username, True,"forms", sessionId)
  3.  
  4. Dim principal As New CustomPrincipal(userIdentity, arrRoles)
  5. HttpContext.Current.User = principal
  6. System.Threading.Thread.CurrentPrincipal = principal
Add Comment
Please, Sign In to add comment