what is the appropriate way to determine whether a user is authenticated/logged
in? Anything more explicit than
!request.resourceResolver.getUserID().equals("anonymous")
?How about on the client side (javascript)? Anything else than "anonymous" != Sling.getSessionInfo.userID ?
