Is there a way in C# to check if someone is logged in?

Using a script in C# or maybe some variable in Radzen to send as a parameter to know if a user is logged in or not?

Check the Get Current User help topic. HttpContext.User.Identity.IsAuthenticated is what you need.