In the code below, I am trying to use the Global.asax page to check whether the user is logged in and if so if the user is in the role of UnvalidatedEmail, they get redirected to VerifyCode.aspx. However, it keeps looping back to this code after redirect.
Sub Application_AuthorizeRequest(ByVal sender As Object, ByVal e As EventArgs)
If User IsNot Nothing And User.Identity.IsAuthenticated = True Then
If User.IsInRole("UnvalidatedEmail") Then