If (User.Identity.IsAuthenticated()) Then ' Do some actions here for authenticated usersElse ' Do other actions here for unauthenticated usersEnd If