hi, i used the same code as yours
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Request.IsAuthenticated AndAlso User.IsInRole("client") = True Then
Response.Redirect("~/Default.aspx")
ElseIf Request.IsAuthenticated AndAlso User.IsInRole("client") = False Then
Response.Redirect("~/ManageUsers.aspx")
End If
End Sub
Default.aspx is my home page, ManageUsers.aspx is only authorized for admins,
but it keeps loggin me back to Default.aspx even when i login with my admin account which is already assigned to the Administrator Role
thanks