You can check the HttpContext.Current.User.Identity.IsAuthenticated property which will allow you to know whether there’s a currently authenticated user or not.
You can check the HttpContext.Current.User.Identity.IsAuthenticated property which will allow you to know whether there’s a currently authenticated user or not.