Hello to everybody, i have a problem with Form authentication, when i try to get name of user logged in code below
the name of NameUsr is name of page instead of user.VB Code:
Dim NameUsr As String = User.Identity.Name.ToString Dim Roles As String = GetRoles(NameUsr) Dim ArrRoles() As String = Split(Ruoli, ",") Dim Roles As New System.Security.Principal.GenericIdentity(NameUsr) Context.User = New System.Security.Principal.GenericPrincipal(Ruolo, ArrRoles)
Anybody know why?
thanks !!


?
Reply With Quote