protected boolean isUserLoggedIn(HttpServletRequest request) {
    return null != request.getUserPrincipal();
  }
Method isUserLoggedIn Check whether user is logged in or not.
geode-pulse/src/main/java/org/apache/geode/tools/pulse/internal/controllers/PulseController.java