If (User.Identity.IsAuthenticated()) Then ' Do some actions here for authenticated users Else ' Do other actions here for unauthenticated users End If